diff --git a/html5lib/_tokenizer.py b/html5lib/_tokenizer.py index 4748a197..f65cbb21 100644 --- a/html5lib/_tokenizer.py +++ b/html5lib/_tokenizer.py @@ -891,8 +891,7 @@ def attributeNameState(self): if data == "=": self.state = self.beforeAttributeValueState elif data in asciiLetters: - self.currentToken["data"][-1][0] += data +\ - self.stream.charsUntil(asciiLetters, True) + self.currentToken["data"][-1][0] += data leavingThisState = False elif data == ">": # XXX If we emit here the attributes are converted to a dict