Skip to content

Commit

Permalink
Updated tokeniser to implement r2123
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401250
  • Loading branch information
philiptaylor committed Dec 22, 2008
1 parent d876256 commit 7c71652
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/html5lib/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,11 @@ def afterAttributeNameState(self):
elif data == u"/":
if not self.processSolidusInTag():
self.state = self.states["beforeAttributeName"]
elif data == u"'" or data == u'"':
self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
"invalid-character-after-attribute-name"})
self.currentToken["data"].append([data, ""])
self.state = self.states["attributeName"]
elif data is EOF:
self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
"expected-end-of-tag-but-got-eof"})
Expand Down

0 comments on commit 7c71652

Please sign in to comment.