We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var rawHtml = '<script>document.write("<!--hello-->");</script>', htmlparser = require('./lib/htmlparser'), handler = new htmlparser.DefaultHandler(), parser = new htmlparser.Parser(handler); parser.parseComplete(rawHtml); console.warn(require('util').inspect(handler.dom, false, null));
Output:
[ { raw: 'script', data: 'script', type: 'script', name: 'script', children: [ { raw: 'document.write("', data: 'document.write("', type: 'text' }, { raw: 'hello', data: 'hello', type: 'comment' }, { raw: '");', data: '");', type: 'text' } ] } ]
Expected output:
[ { raw: 'script', data: 'script', type: 'script', name: 'script', children: [ { raw: 'document.write("<!--hello-->");', data: 'document.write("<!--hello-->");', type: 'text' } ] } ]
The text was updated successfully, but these errors were encountered:
If you have a patch or pull request I will apply it to the 1.x branch, otherwise I am focusing efforts on getting 2.x tested and released.
Sorry, something went wrong.
Merge pull request fb55#46 from One-com/missing_void_elements
f58c1d3
Added missing void elements.
No branches or pull requests
Output:
Expected output:
The text was updated successfully, but these errors were encountered: