8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcbf113 commit 082885eCopy full SHA for 082885e
src/html5lib/tokenizer.py
@@ -191,7 +191,7 @@ def consumeEntity(self, fromAttribute=False):
191
elif charStack[0] == u"#":
192
# We might have a number entity here.
193
charStack.extend([self.stream.char(), self.stream.char()])
194
- if EOF in charStack:
+ if EOF in charStack[:2]:
195
# If we reach the end of the file put everything up to EOF
196
# back in the queue
197
charStack = charStack[:charStack.index(EOF)]
0 commit comments