8000 Deal with new elements end tags under the other case 'till Hixie fixe… · awesome-python/html5lib-python@be3ab83 · GitHub
[go: up one dir, main page]

Skip to content

Commit be3ab83

Browse files
committed
Deal with new elements end tags under the other case 'till Hixie fixes the spec
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40554
1 parent 453b417 commit be3ab83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/html5parser.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ def startTagNew(self, name, attributes):
866866
"""New HTML5 elements, "event-source", "section", "nav",
867867
"article", "aside", "header", "footer", "datagrid", "command"
868868
"""
869-
sys.stderr.write("Warning: Undefined behaviour for tag %s"%name)
869+
sys.stderr.write("Warning: Undefined behaviour for start tag %s" 8889 %name)
870870
self.startTagOther(name, attributes)
871871
#raise NotImplementedError
872872

@@ -1100,7 +1100,9 @@ def endTagNew(self, name):
11001100
"""New HTML5 elements, "event-source", "section", "nav",
11011101
"article", "aside", "header", "footer", "datagrid", "command"
11021102
"""
1103-
raise NotImplementedError
1103+
sys.stderr.write("Warning: Undefined behaviour for end tag %s"%name)
1104+
self.endTagOther(name)
1105+
#raise NotImplementedError
11041106

11051107
def endTagOther(self, name):
11061108
# XXX This logic should be moved into the treebuilder

0 commit comments

Comments
 (0)
0