Description
ignoreDeclaration does not ignore lower case doctype declaration.
Input
Code
const html = `<!doctype html><html></html>`;
const parser = new XMLParser({
ignoreDeclaration: true,
});
let jObj = parser.parse(html);
console.log(jObj);
Output
{ '!doctype': { html: '' } }
expected data
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
Description
ignoreDeclarationdoes not ignore lower case doctype declaration.Input
Code
Output
expected data
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.