Skip to content

Commit 5989ef7

Browse files
committed
remove obsolete comment
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40464
1 parent 83ddb4c commit 5989ef7

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/html5parser.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def parse(self, stream, encoding=None, innerHTML=False):
120120
return self.tree.getDocument()
121121

122122
def parseError(self, data="XXX ERROR MESSAGE NEEDED"):
123-
# The idea is to make data mandatory.
123+
# XXX The idea is to make data mandatory.
124124
self.errors.append((self.tokenizer.stream.position(), data))
125125
if self.strict:
126126
raise ParseError
@@ -166,10 +166,6 @@ def normalizeToken(self, token):
166166

167167
return token
168168

169-
#XXX - almost everthing after this point should be moved into a
170-
#seperate treebuilder object
171-
172-
173169
def resetInsertionMode(self):
174170
# The name of this method is mostly historical. (It's also used in the
175171
# specification.)

src/tokenizer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ def tagOpenState(self):
319319
# XXX In theory it could be something besides a tag name. But
320320
# do we really care?
321321
self.tokenQueue.append({"type": "ParseError", "data":
322-
_("Expected tag name. Got '?' instead (HTML doesn't support processing instructions).")})
322+
_("Expected tag name. Got '?' instead (HTML doesn't "
323+
"support processing instructions).")})
323324
self.stream.queue.append(data)
324325
self.state = self.states["bogusComment"]
325326
else:

tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#Run the parse error checks
2323
#XXX - ideally want this to be a command line argument
24-
checkParseErrors = False
24+
checkParseErrors = True
2525

2626
def parseTestcase(testString):
2727
testString = testString.split("\n")

0 commit comments

Comments
 (0)