Skip to content

Commit 7c71652

Browse files
committed
Updated tokeniser to implement r2123
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401250
1 parent d876256 commit 7c71652

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/html5lib/tokenizer.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,11 @@ def afterAttributeNameState(self):
594594
elif data == u"/":
595595
if not self.processSolidusInTag():
596596
self.state = self.states["beforeAttributeName"]
597+
elif data == u"'" or data == u'"':
598+
self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
599+
"invalid-character-after-attribute-name"})
600+
self.currentToken["data"].append([data, ""])
601+
self.state = self.states["attributeName"]
597602
elif data is EOF:
598603
self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
599604
"expected-end-of-tag-but-got-eof"})

0 commit comments

Comments
 (0)