Skip to content

Commit

Permalink
Fix handling of <font> in SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Feb 10, 2012
1 parent 6a29350 commit 19686c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5lib/html5parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2426,7 +2426,7 @@ def processStartTag(self, token):
currentNode = self.tree.openElements[-1]
if (token["name"] in self.breakoutElements or
(token["name"] == "font" and
set(token["data"].keys()) | set(["color", "face", "size"]))):
set(token["data"].keys()) & set(["color", "face", "size"]))):
self.parser.parseError("unexpected-html-element-in-foreign-content",
token["name"])
while (self.tree.openElements[-1].namespace !=
Expand Down

0 comments on commit 19686c8

Please sign in to comment.