File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " typesxml" ,
33 "productName" : " TypesXML" ,
4- "version" : " 1.8 .0" ,
4+ "version" : " 1.9 .0" ,
55 "description" : " Open source XML library written in TypeScript" ,
66 "keywords" : [
77 " XML" ,
2929 "url" : " https://github.com/rmraya/TypesXML.git"
3030 },
3131 "devDependencies" : {
32- "@types/node" : " ^24.3.0 " ,
33- "typescript" : " ^5.9.2 "
32+ "@types/node" : " ^24.7.2 " ,
33+ "typescript" : " ^5.9.3 "
3434 }
3535}
Original file line number Diff line number Diff line change @@ -126,14 +126,14 @@ export class SAXParser {
126126 if ( this . buffer . length - this . pointer < SAXParser . MIN_BUFFER_SIZE && this . reader ?. dataAvailable ( ) ) {
127127 this . buffer += this . reader ?. read ( ) ;
128128 }
129- if ( this . rootParsed && this . elementStack === 0 ) {
130- this . contentHandler ?. endDocument ( ) ;
131- }
132129 }
133130 if ( this . elementStack !== 0 ) {
134131 throw new Error ( 'Malformed XML document: unclosed elements' ) ;
135132 }
136133 this . cleanCharacterRun ( ) ;
134+ if ( this . rootParsed ) {
135+ this . contentHandler ?. endDocument ( ) ;
136+ }
137137 }
138138
139139 parseEntityReference ( ) {
You can’t perform that action at this time.
0 commit comments