Skip to content

Commit 2ee56f9

Browse files
committed
Fix html5lib#258: annotation-xml branch didn't check tag type
1 parent c35d84c commit 2ee56f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

html5lib/html5parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def mainLoop(self):
191191
type in (CharactersToken, SpaceCharactersToken))) or
192192
(currentNodeNamespace == namespaces["mathml"] and
193193
currentNodeName == "annotation-xml" and
194+
type == StartTagToken and
194195
token["name"] == "svg") or
195196
(self.isHTMLIntegrationPoint(currentNode) and
196197
type in (StartTagToken, CharactersToken, SpaceCharactersToken))):

0 commit comments

Comments
 (0)