8000 Fix issue 50 - &#9 at EOF not converted to entity. Phillip has a pile… · html5lib/html5lib-python@082885e · GitHub
[go: up one dir, main page]

Skip to content

Commit 082885e

Browse files
committed
Fix issue 50 - &#9 at EOF not converted to entity. Phillip has a pile of tests including one for for this which he is planning to check in.
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40872
1 parent bcbf113 commit 082885e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html5lib/tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def consumeEntity(self, fromAttribute=False):
191191
elif charStack[0] == u"#":
192192
# We might have a number entity here.
193193
charStack.extend([self.stream.char(), self.stream.char()])
194-
if EOF in charStack:
194+
if EOF in charStack[:2]:
195195
# If we reach the end of the file put everything up to EOF
196196
# back in the queue
197197
charStack = charStack[:charStack.index(EOF)]

0 commit comments

Comments
 (0)
0