Skip to content

Commit 19686c8

Browse files
committed
Fix handling of <font> in SVG
1 parent 6a29350 commit 19686c8

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
@@ -2426,7 +2426,7 @@ def processStartTag(self, token):
24262426
currentNode = self.tree.openElements[-1]
24272427
if (token["name"] in self.breakoutElements or
24282428
(token["name"] == "font" and
2429-
set(token["data"].keys()) | set(["color", "face", "size"]))):
2429+
set(token["data"].keys()) & set(["color", "face", "size"]))):
24302430
self.parser.parseError("unexpected-html-element-in-foreign-content",
24312431
token["name"])
24322432
while (self.tree.openElements[-1].namespace !=

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