Skip to content

Commit e45339a

Browse files
committed
Fix #258: annotation-xml branch didn't check tag type
1 parent 2665e0d commit e45339a

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
@@ -193,6 +193,7 @@ def mainLoop(self):
193193
type in (CharactersToken, SpaceCharactersToken))) or
194194
(currentNodeNamespace == namespaces["mathml"] and
195195
currentNodeName == "annotation-xml" and
196+
type == StartTagToken and
196197
token["name"] == "svg") or
197198
(self.isHTMLIntegrationPoint(currentNode) and
198199
type in (StartTagToken, CharactersToken, SpaceCharactersToken))):

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