@@ -553,12 +553,11 @@ export default class Tokenizer {
553
553
// HTML mode
554
554
// - <script>, <style> RAWTEXT
555
555
// - <title>, <textarea> RCDATA
556
- const lower = c | 0x20
557
- if ( lower === 116 /* t */ ) {
556
+ if ( c === 116 /* t */ ) {
558
557
this . state = State . BeforeSpecialT
559
558
} else {
560
559
this . state =
561
- lower === 115 /* s */ ? State . BeforeSpecialS : State . InTagName
560
+ c === 115 /* s */ ? State . BeforeSpecialS : State . InTagName
562
561
}
563
562
} else {
564
563
this . state = State . InTagName
@@ -862,21 +861,19 @@ export default class Tokenizer {
862
861
}
863
862
}
864
863
private stateBeforeSpecialS ( c : number ) : void {
865
- const lower = c | 0x20
866
- if ( lower === Sequences . ScriptEnd [ 3 ] ) {
864
+ if ( c === Sequences . ScriptEnd [ 3 ] ) {
867
865
this . startSpecial ( Sequences . ScriptEnd , 4 )
868
- } else if ( lower === Sequences . StyleEnd [ 3 ] ) {
866
+ } else if ( c === Sequences . StyleEnd [ 3 ] ) {
869
867
this . startSpecial ( Sequences . StyleEnd , 4 )
870
868
} else {
871
869
this . state = State . InTagName
872
870
this . stateInTagName ( c ) // Consume the token again
873
871
}
874
872
}
875
873
private stateBeforeSpecialT ( c : number ) : void {
876
- const lower = c | 0x20
877
- if ( lower === Sequences . TitleEnd [ 3 ] ) {
874
+ if ( c === Sequences . TitleEnd [ 3 ] ) {
878
875
this . startSpecial ( Sequences . TitleEnd , 4 )
879
- } else if ( lower === Sequences . TextareaEnd [ 3 ] ) {
876
+ } else if ( c === Sequences . TextareaEnd [ 3 ] ) {
880
877
this . startSpecial ( Sequences . TextareaEnd , 4 )
881
878
} else {
882
879
this . state = State . InTagName
0 commit comments