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 parentf5f28de commit0feb241Copy full SHA for 0feb241
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
-ifcharStack[0]inspaceCharactersorcharStack[0]in (EOF,u"<",u"&")\
159
-or (allowedCharisnotNoneandallowedChar==charStack[0]):
+if(charStack[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(None)
+self.processEntityInAttribute(">")
624
elifdata==u">":
625
self.emitCurrentToken()
626
elifdatain (u'"',u"'",u"=",u"<"):