8000 No longer care about whitespace outside the root element · awesome-python/html5lib-python@fb67818 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb67818

Browse files
committed
No longer care about whitespace outside the root element
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40902
1 parent cdea9e3 commit fb67818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html5lib/html5parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def processDoctype(self, name, publicId, systemId, correct):
400400
self.parser.phase = self.parser.phases["rootElement"]
401401

402402
def processSpaceCharacters(self, data):
403-
self.tree.insertText(data, self.tree.document)
403+
pass
404404

405405
def processCharacters(self, data):
406406
self.parser.parseError(_(u"Unexpected non-space characters. "

0 commit comments

Comments
 (0)
0