isaacs / sax-js

A sax style parser for JS
Other
1.09k stars 325 forks source link

closing square bracket in a doctype comment leads to an error #236

Closed jcsahnwaldt closed 3 months ago

jcsahnwaldt commented 6 years ago

A closing square bracket in a doctype comment leads to an error in sax-js, but it's allowed by XML spec, and other parsers / validators accept it.

See test case in pull request #235 .