We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0feb241 commitea5bd60Copy full SHA for ea5bd60
src/html5lib/tokenizer.py
@@ -155,8 +155,8 @@ def consumeEntity(self, allowedChar=None, fromAttribute=False):
155
output=u"&"
156
157
charStack= [self.stream.char()]
158
-if(charStack[0]inspaceCharactersorcharStack[0]in (EOF,u"<",u"&")
159
-or (allowedCharisnotNoneandallowedChar==charStack[0])):
+ifcharStack[0]inspaceCharactersorcharStack[0]in (EOF,u"<",u"&")\
+or (allowedCharisnotNoneandallowedChar==charStack[0]):
160
self.stream.unget(charStack[0])
161
162
elifcharStack[0]==u"#":
@@ -620,7 +620,7 @@ def attributeValueUnQuotedState(self):
620
ifdatainspaceCharacters:
621
self.state=self.beforeAttributeNameState
622
elifdata==u"&":
623
-self.processEntityInAttribute(">")
+self.processEntityInAttribute(None)
624
elifdata==u">":
625
self.emitCurrentToken()
626
elifdatain (u'"',u"'",u"=",u"<"):