Skip to content

Commit a2cdaf5

Browse files
committed
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)
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