Skip to content

Commit

Permalink
Added some failing tokeniser tests, and fixed them
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401237
  • Loading branch information
philiptaylor committed Dec 18, 2008
1 parent dfc849f commit b067b74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/html5lib/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def closeTagOpenState(self):
if self.currentToken \
and self.currentToken["name"].lower() == "".join(charStack[:-1]).lower() \
and charStack[-1] in (spaceCharacters |
frozenset((u">", u"/", u"<", EOF))):
frozenset((u">", u"/", EOF))):
# Because the characters are correct we can safely switch to
# PCDATA mode now. This also means we don't have to do it when
# emitting the end tag token.
Expand Down Expand Up @@ -485,8 +485,8 @@ def tagNameState(self):
"eof-in-tag-name"})
self.emitCurrentToken()
elif data == u"/":
self.processSolidusInTag()
self.state = self.states["beforeAttributeName"]
if not self.processSolidusInTag():
self.state = self.states["beforeAttributeName"]
else:
self.currentToken["name"] += data
return True
Expand Down

0 comments on commit b067b74

Please sign in to comment.