File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -489,9 +489,6 @@ def tagNameState(self):
489
489
data = self .stream .char ()
490
490
if data in spaceCharacters :
491
491
self .state = self .states ["beforeAttributeName" ]
492
- elif data in asciiLetters :
493
- <
80EB
span class=pl-s1>self.currentToken ["name" ] += data + \
494
- self .stream .charsUntil (asciiLetters , True )
495
492
elif data == u">" :
496
493
self .emitCurrentToken ()
497
494
elif data is EOF :
@@ -503,6 +500,8 @@ def tagNameState(self):
503
500
self .state = self .states ["beforeAttributeName" ]
504
501
else :
505
502
self .currentToken ["name" ] += data
503
+ # (Don't use charsUntil here, because tag names are
504
+ # very short and it's faster to not do anything fancy)
506
505
return True
507
506
508
507
def beforeAttributeNameState (self ):
You can’t perform that action at this time.
0 commit comments