We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parente5d395c commitb64df28Copy full SHA for b64df28
html5lib/html5parser.py
@@ -953,8 +953,8 @@ class InBodyPhase(Phase):
953
def__init__(self,parser,tree):
954
Phase.__init__(self,parser,tree)
955
956
-#Keep a reftothis for special handling of whitespace in <pre>
957
-self.processSpaceCharactersNonPre=self.processSpaceCharacters
+#Set thistothe default handler
+self.processSpaceCharacters=self.processSpaceCharactersNonPre
958
959
self.startTagHandler=utils.MethodDispatcher([
960
("html",self.startTagHtml),
@@ -1087,7 +1087,7 @@ def processCharacters(self, token):
1087
forcharintoken["data"]])):
1088
self.parser.framesetOK=False
1089
1090
-defprocessSpaceCharacters(self,token):
+defprocessSpaceCharactersNonPre(self,token):
1091
self.tree.reconstructActiveFormattingElements()
1092
self.tree.insertText(token["data"])
1093