Skip to content

Commit 183d8a0

Browse files
committed
Consistency: consume a single character at a time during attribute name state
1 parent 2c19b98 commit 183d8a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

html5lib/_tokenizer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,7 @@ def attributeNameState(self):
891891
if data == "=":
892892
self.state = self.beforeAttributeValueState
893893
elif data in asciiLetters:
894-
self.currentToken["data"][-1][0] += data +\
895-
self.stream.charsUntil(asciiLetters, True)
894+
self.currentToken["data"][-1][0] += data
896895
leavingThisState = False
897896
elif data == ">":
898897
# XXX If we emit here the attributes are converted to a dict

0 commit comments

Comments
 (0)