8000 end tag list items didn't properly report parse errors · html5lib/html5lib-python@d6366f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6366f8

Browse files
committed
end tag list items didn't properly report parse errors
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40856
1 parent a546f65 commit d6366f8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/html5lib/html5parser.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,9 +1042,10 @@ def endTagListItem(self, name):
10421042
# AT Could merge this with the Block case
10431043
if self.tree.elementInScope(name):
10441044
self.tree.generateImpliedEndTags(name)
1045-
if self.tree.openElements[-1].name != name:
1046-
self.parser.parseError(_(u"End tag (" + name + ") seen too "
1047-
u"early. Expected other end tag."))
1045+
1046+
if self.tree.openElements[-1].name != name:
1047+
self.parser.parseError(_(u"End tag (" + name + ") seen too "
1048+
u"early. Expected other end tag."))
10481049

10491050
if self.tree.elementInScope(name):
10501051
node = self.tree.openElements.pop()

0 commit comments

Comments
 (0)
0