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 559cf5c commit 97ed427Copy full SHA for 97ed427
html5lib/tokenizer.py
@@ -223,7 +223,11 @@ def entitiesStartingWith(name):
223
if fromAttribute:
224
self.currentToken["data"][-1][1] += output
225
else:
226
- self.tokenQueue.append({"type": tokenTypes["Characters"], "data": output})
+ if output in spaceCharacters:
227
+ tokenType = "SpaceCharacters"
228
+ else:
229
+ tokenType = "Characters"
230
+ self.tokenQueue.append({"type": tokenTypes[tokenType], "data": output})
231
232
def processEntityInAttribute(self, allowedChar):
233
"""This method replaces the need for "entityInAttributeValueState".
0 commit comments