@@ -527,12 +527,32 @@ public class Tokenizer implements Locator {
527
527
public Tokenizer (TokenHandler tokenHandler , boolean newAttributesEachTime ) {
528
528
this .tokenHandler = tokenHandler ;
529
529
this .encodingDeclarationHandler = null ;
530
+ this .lastCR = false ;
531
+ this .stateSave = 0 ;
532
+ this .returnStateSave = 0 ;
533
+ this .index = 0 ;
534
+ this .forceQuirks = false ;
535
+ this .additional = '\u0000' ;
536
+ this .entCol = 0 ;
537
+ this .firstCharKey = 0 ;
538
+ this .lo = 0 ;
539
+ this .hi = 0 ;
540
+ this .candidate = 0 ;
541
+ this .charRefBufMark = 0 ;
542
+ this .value = 0 ;
543
+ this .seenDigits = false ;
544
+ this .cstart = 0 ;
545
+ this .strBufLen = 0 ;
530
546
this .newAttributesEachTime = newAttributesEachTime ;
531
547
// ∳ is the longest valid char ref and
532
548
// the semicolon never gets appended to the buffer.
533
549
this .charRefBuf = new char [32 ];
550
+ this .charRefBufLen = 0 ;
534
551
this .bmpChar = new char [1 ];
535
552
this .astralChar = new char [2 ];
553
+ this .endTagExpectation = null ;
554
+ this .endTagExpectationAsArray = new char [0 ];
555
+ this .endTag = false ;
536
556
this .containsHyphen = false ;
537
557
this .tagName = null ;
538
558
this .nonInternedTagName = new ElementName ();
@@ -542,6 +562,11 @@ public Tokenizer(TokenHandler tokenHandler, boolean newAttributesEachTime) {
542
562
this .publicIdentifier = null ;
543
563
this .systemIdentifier = null ;
544
564
this .attributes = null ;
565
+ this .shouldSuspend = false ;
566
+ this .confident = false ;
567
+ this .line = 0 ;
568
+ this .attributeLine = 0 ;
569
+ this .interner = null ;
545
570
}
546
571
547
572
// ]NOCPP]
@@ -560,11 +585,31 @@ public Tokenizer(TokenHandler tokenHandler
560
585
// [NOCPP[
561
586
this .newAttributesEachTime = false ;
562
587
// ]NOCPP]
588
+ this .lastCR = false ;
589
+ this .stateSave = 0 ;
590
+ this .returnStateSave = 0 ;
591
+ this .index = 0 ;
592
+ this .forceQuirks = false ;
593
+ this .additional = '\u0000' ;
594
+ this .entCol = 0 ;
595
+ this .firstCharKey = 0 ;
596
+ this .lo = 0 ;
597
+ this .hi = 0 ;
598
+ this .candidate = 0 ;
599
+ this .charRefBufMark = 0 ;
600
+ this .value = 0 ;
601
+ this .seenDigits = false ;
602
+ this .cstart = 0 ;
603
+ this .strBufLen = 0 ;
563
604
// ∳ is the longest valid char ref and
564
605
// the semicolon never gets appended to the buffer.
565
606
this .charRefBuf = new char [32 ];
607
+ this .charRefBufLen = 0 ;
566
608
this .bmpChar = new char [1 ];
567
609
this .astralChar = new char [2 ];
610
+ this .endTagExpectation = null ;
611
+ this .endTagExpectationAsArray = new char [0 ];
612
+ this .endTag = false ;
568
613
this .containsHyphen = false ;
569
614
this .tagName = null ;
570
615
this .nonInternedTagName = new ElementName ();
@@ -578,6 +623,11 @@ public Tokenizer(TokenHandler tokenHandler
578
623
// ]NOCPP]
579
624
// CPPONLY: this.attributes = tokenHandler.HasBuilder() ? new HtmlAttributes(mappingLangToXmlLang) : null;
580
625
// CPPONLY: this.newAttributesEachTime = !tokenHandler.HasBuilder();
626
+ this .shouldSuspend = false ;
627
+ this .confident = false ;
628
+ this .line = 0 ;
629
+ this .attributeLine = 0 ;
630
+ this .interner = null ;
581
631
// CPPONLY: this.viewingXmlSource = viewingXmlSource;
582
632
}
583
633
0 commit comments