@@ -412,11 +412,6 @@ def tagNameState(self):
412
412
self .stream .charsUntil (asciiLetters , True )
413
413
elif data == u">" :
414
414
self .emitCurrentToken ()
415
- elif data == u"<" :
416
- self .stream .queue .append (data )
417
- self .tokenQueue .append ({"type" : "ParseError" , "data" :
418
- _ ("Unexpected < character when getting the tag name." )})
419
- self .emitCurrentToken ()
420
415
elif data == EOF :
421
416
self .tokenQueue .append ({"type" : "ParseError" , "data" :
422
417
_ ("Unexpected end of file in the tag name." )})
@@ -439,11 +434,6 @@ def beforeAttributeNameState(self):
439
434
self .emitCurrentToken ()
440
435
elif data == u"/" :
441
436
self .processSolidusInTag ()
442
- elif data == u"<" :
443
- self .stream .queue .append (data )
444
- self .tokenQueue .append ({"type" : "ParseError" , "data" :
445
- _ ("Unexpected < character. Expected attribute name instead." )})
446
- self .emitCurrentToken ()
447
437
elif data == EOF :
448
438
self .tokenQueue .append ({"type" : "ParseError" , "data" :
449
439
_ ("Unexpected end of file. Expected attribute name instead." )})
@@ -472,12 +462,6 @@ def attributeNameState(self):
472
462
elif data == u"/" :
473
463
self .processSolidusInTag ()
474
464
self .state = self .states ["beforeAttributeName" ]
475
- elif data == u"<" :
476
- self .stream .queue .append (data )
477
- self .tokenQueue .append ({"type" : "ParseError" , "data" :
478
- _ ("Unexpected < character in attribute name." )})
479
- self .emitCurrentToken ()
480
- leavingThisState = False
481
465
elif data == EOF :
482
466
self .tokenQueue .append ({"type" : "ParseError" , "data" :
483
467
_ ("Unexpected end of file in attribute name." )})
@@ -514,11 +498,6 @@ def afterAttributeNameState(self):
514
498
elif data == u"/" :
515
499
self .processSolidusInTag ()
516
500
self .state = self .states ["beforeAttributeName" ]
517
- elif data == u"<" :
518
- self .stream .queue .append (data )
519
- self .tokenQueue .append ({"type" : "ParseError" , "data" :
520
- _ ("Unexpected < character. Expected = or end of tag." )})
521
- self .emitCurrentToken ()
522
501
elif data == EOF :
523
502
self .tokenQueue .append ({"type" : "ParseError" , "data" :
524
503
_ ("Unexpected end of file. Expected = or end of tag." )})
@@ -541,11 +520,6 @@ def beforeAttributeValueState(self):
541
520
self .state = self .states ["attributeValueSingleQuoted" ]
542
521
elif data == u">" :
543
522
self .emitCurrentToken ()
544
- elif data == u"<" :
545
- self .stream .queue .append (data )
546
- self .tokenQueue .append ({"type" : "ParseError" , "data" :
547
- _ ("Unexpected < character. Expected attribute value." )})
548
- self .emitCurrentToken ()
549
523
elif data == EOF :
550
524
self .tokenQueue .append ({"type" : "ParseError" , "data" :
551
525
_ ("Unexpected end of file. Expected attribute value." )})
@@ -593,11 +567,6 @@ def attributeValueUnQuotedState(self):
593
567
self .processEntityInAttribute ()
594
568
elif data == u">" :
595
569
self .emitCurrentToken ()
596
- elif data == u"<" :
597
- self .stream .queue .append (data )
598
- self .tokenQueue .append ({"type" : "ParseError" , "data" :
599
- _ ("Unexpected < character in attribute value." )})
600
- self .emitCurrentToken ()
601
570
elif data == EOF :
602
571
self .tokenQueue .append ({"type" : "ParseError" , "data" :
603
572
_ ("Unexpected end of file in attribute value." )})
0 commit comments