Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb067b74

Browse files
committed
Added some failing tokeniser tests, and fixed them
--HG--extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401237
1 parentdfc849f commitb067b74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/html5lib/tokenizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def closeTagOpenState(self):
436436
ifself.currentToken \
437437
andself.currentToken["name"].lower()=="".join(charStack[:-1]).lower() \
438438
andcharStack[-1]in (spaceCharacters|
439-
frozenset((u">",u"/",u"<",EOF))):
439+
frozenset((u">",u"/",EOF))):
440440
# Because the characters are correct we can safely switch to
441441
# PCDATA mode now. This also means we don't have to do it when
442442
# emitting the end tag token.
@@ -485,8 +485,8 @@ def tagNameState(self):
485485
"eof-in-tag-name"})
486486
self.emitCurrentToken()
487487
elifdata==u"/":
488-
self.processSolidusInTag()
489-
self.state=self.states["beforeAttributeName"]
488+
ifnotself.processSolidusInTag():
489+
self.state=self.states["beforeAttributeName"]
490490
else:
491491
self.currentToken["name"]+=data
492492
returnTrue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp