isaacs / sax-js

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

In strict mode, report an error on empty processing instructions. #232

Open lddubeau opened 6 years ago

lddubeau commented 6 years ago

Empty processing instructions (like this: <??>) are not well-formed, and thus not XML. This commit makes sax report an error when used in strict mode.