Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a2cdaf5

Browse files
committedJan 12, 2016
Fix #144: avoid bogus parse error on camel-case foreign elements
1 parent 73215c5 commit a2cdaf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎html5lib/html5parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2444,7 +2444,7 @@ def processStartTag(self, token):
24442444
def processEndTag(self, token):
24452445
nodeIndex = len(self.tree.openElements) - 1
24462446
node = self.tree.openElements[-1]
2447-
if node.name != token["name"]:
2447+
if node.name.translate(asciiUpper2Lower) != token["name"]:
24482448
self.parser.parseError("unexpected-end-tag", {"name": token["name"]})
24492449

24502450
while True:

0 commit comments

Comments
 (0)
Please sign in to comment.