8000 Minor typo in isindex text and commented code that reconstructs afes … · awesome-python/html5lib-python@6120b13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6120b13

Browse files
committed
Minor typo in isindex text and commented code that reconstructs afes on space per current spec rather than current code that is per future spec
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40903
1 parent fb67818 commit 6120b13

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/html5lib/html5parser.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,11 @@ def processCharacters(self, data):
770770
self.tree.reconstructActiveFormattingElements()
771771
self.tree.insertText(data)
772772

773+
#Uncomment the following to match the current spec rather than the behaviour above
774+ 8FCA
#def processSpaceCharacters(self, data):
775+
# self.tree.reconstructActiveFormattingElements()
776+
# self.tree.insertText(data)
777+
773778
def startTagProcessInHead(self, name, attributes):
774779
self.parser.phases["inHead"].processStartTag(name, attributes)
775780

@@ -939,7 +944,7 @@ def startTagIsIndex(self, name, attributes):
939944
self.processStartTag("label", {})
940945
# XXX Localization ...
941946
self.processCharacters(
942-
"This is a searchable index. Insert your search keywords here:")
947+
"This is a searchable index. Insert your search keywords here: ")
943948
attributes["name"] = "isindex"
944949
attrs = [[key,value] for key,value in attributes.iteritems()]
945950
self.processStartTag("input", dict(attrs))

0 commit comments

Comments
 (0)
0