Skip to content

Commit d876256

Browse files
committed
Fixed tokeniser from recent merge
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401249
1 parent 2a4154e commit d876256

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/html5lib/inputstream.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from constants import EOF, spaceCharacters, asciiLetters, asciiUppercase
66
from constants import encodings
7-
from utils import MethodDispatcher
87

98
#Non-unicode versions of constants for use in the pre-parser
109
spaceCharactersBytes = [str(item) for item in spaceCharacters]

src/html5lib/tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def beforeAttributeValueState(self):
615615
elif data == u"'":
616616
self.state = self.states["attributeValueSingleQuoted"]
617617
elif data == u">":
618-
self.tokenQueue.append({"type": "ParseError", "data":
618+
self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
619619
"expected-attribute-value-but-got-right-bracket"})
620620
self.emitCurrentToken()
621621
elif data == u"=":

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy