diff --git a/html5lib/html5parser.py b/html5lib/html5parser.py index c0855362d..f5808b224 100644 --- a/html5lib/html5parser.py +++ b/html5lib/html5parser.py @@ -1209,7 +1209,7 @@ def startTagMath(self, token): #has a namespace not equal to the xmlns attribute if self.parser.phase != self.parser.phases["inForeignContent"]: self.parser.secondaryPhase = self.parser.phase - self.parser.phase = self.parser.phases["inForeignContent"] + self.parser.phase = self.parser.phases["inForeignContent"] if token["selfClosing"]: self.tree.openElements.pop() token["selfClosingAcknowledged"] = True @@ -1224,7 +1224,7 @@ def startTagSvg(self, token): #has a namespace not equal to the xmlns attribute if self.parser.phase != self.parser.phases["inForeignContent"]: self.parser.secondaryPhase = self.parser.phase - self.parser.phase = self.parser.phases["inForeignContent"] + self.parser.phase = self.parser.phases["inForeignContent"] if token["selfClosing"]: self.tree.openElements.pop() token["selfClosingAcknowledged"] = True