10BC0 Ignore whitespace tokens between the doctype and the html element · html5lib/html5lib-python@1b56852 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b56852

Browse files
committed
Ignore whitespace tokens between the doctype and the html element
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40904
1 parent 6120b13 commit 1b56852

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/html5lib/html5parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Differences from the current specification (23 December 2006) are as follows:
1+
# Differences from the current specification are as follows:
22
# * Phases and insertion modes are one concept in parser.py.
33
# * EOF handling is slightly different to make sure <html>, <head> and <body>
44
# always exist.
5-
#
6-
# We haven't updated DOCTYPE handling yet
5+
# * Active formatting elements not reconstructed on whitespace tokens
6+
77

88

99
try:
@@ -436,7 +436,7 @@ def processComment(self, data):
436436
self.tree.insertComment(data, self.tree.document)
437437

438438
def processSpaceCharacters(self, data):
439-
self.tree.insertText(data, self.tree.document)
439+
pass
440440

441441
def processCharacters(self, data):
442442
self.insertHtmlElement()

0 commit comments

Comments
 (0)
0