Skip to content

Commit 66a2f77

Browse files
committed
Check that no tag in the method dispatcher is duplicated (#255)
Check that no tag in the method dispatcher is duplicated; r=nobody!
1 parent 5288737 commit 66a2f77

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

html5lib/html5parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ def __init__(self, parser, tree):
893893
("body", self.startTagBody),
894894
("frameset", self.startTagFrameset),
895895
(("address", "article", "aside", "blockquote", "center", "details",
896-
"details", "dir", "div", "dl", "fieldset", "figcaption", "figure",
896+
"dir", "div", "dl", "fieldset", "figcaption", "figure",
897897
"footer", "header", "hgroup", "main", "menu", "nav", "ol", "p",
898898
"section", "summary", "ul"),
899899
self.startTagCloseP),

html5lib/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def __init__(self, items=()):
6161
else:
6262
_dictEntries.append((name, value))
6363
dict.__init__(self, _dictEntries)
64+
assert len(self) == len(_dictEntries)
6465
self.default = None
6566

6667
def __getitem__(self, key):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy