Import from https://github.com/isaacs/sax-js Commit 5da00d213a8cae94be72ce155e7cf8fda600b94c, with sax.patch