File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ def closeTagOpenState(self):
436
436
if self .currentToken \
437
437
and self .currentToken ["name" ].lower () == "" .join (charStack [:- 1 ]).lower () \
438
438
and charStack [- 1 ] in (spaceCharacters |
439
- frozenset ((u">" , u"/" , u"<" , EOF ))):
439
+ frozenset ((u">" , u"/" , EOF ))):
440
440
# Because the characters are correct we can safely switch to
441
441
# PCDATA mode now. This also means we don't have to do it when
442
442
# emitting the end tag token.
@@ -485,8 +485,8 @@ def tagNameState(self):
485
485
"eof-in-tag-name" })
486
486
self .emitCurrentToken ()
487
487
elif data == u"/" :
488
- self .processSolidusInTag ()
489
- self .state = self .states ["beforeAttributeName" ]
488
+ if not self .processSolidusInTag ():
489
+ self .state = self .states ["beforeAttributeName" ]
490
490
else :
491
491
self .currentToken ["name" ] += data
492
492
return True
You can’t perform that action at this time.
0 commit comments