@@ -76,7 +76,7 @@ export enum CharCodes {
76
76
Dot = 0x2e , // "."
77
77
Colon = 0x3a , // ":"
78
78
At = 0x40 , // "@"
79
- LeftSqaure = 91 , // "["
79
+ LeftSquare = 91 , // "["
80
80
RightSquare = 93 // "]"
81
81
}
82
82
@@ -242,7 +242,7 @@ export default class Tokenizer {
242
242
public inRCDATA = false
243
243
/** For disabling RCDATA tags handling */
244
244
public inXML = false
245
- /** Reocrd newline positions for fast line / column calculation */
245
+ /** Record newline positions for fast line / column calculation */
246
246
private newlines : number [ ] = [ ]
247
247
248
248
private readonly entityDecoder ?: EntityDecoder
@@ -637,7 +637,7 @@ export default class Tokenizer {
637
637
} else if ( c === CharCodes . Lt && this . peek ( ) === CharCodes . Slash ) {
638
638
// special handling for </ appearing in open tag state
639
639
// this is different from standard HTML parsing but makes practical sense
640
- // especially for parsing intermedaite input state in IDEs.
640
+ // especially for parsing intermediate input state in IDEs.
641
641
this . cbs . onopentagend ( this . index )
642
642
this . state = State . BeforeTagName
643
643
this . sectionStart = this . index
@@ -714,7 +714,7 @@ export default class Tokenizer {
714
714
if ( c === CharCodes . Eq || isEndOfTagSection ( c ) ) {
715
715
this . cbs . ondirarg ( this . sectionStart , this . index )
716
716
this . handleAttrNameEnd ( c )
717
- } else if ( c === CharCodes . LeftSqaure ) {
717
+ } else if ( c === CharCodes . LeftSquare ) {
718
718
this . state = State . InDirDynamicArg
719
719
} else if ( c === CharCodes . Dot ) {
720
720
this . cbs . ondirarg ( this . sectionStart , this . index )
0 commit comments