See minimal reproduction here: https://github.com/hedgepigdaniel/parse5-bug I tried to find a bug in the `parse5-sax-parser` but the test I created for it succeeds: https://github.com/inikulin/parse5/compare/master...hedgepigdaniel:test/waterline?expand=1 So I assume that it has something to do with the `sourceCodeLocationInfo` option passed to the `SAXParser` by `RewritingStream`. An effective workaround is to set `RewritingStream().tokenizer.preprocessor.bufferWaterline = Infinity` as seen here: https://github.com/hedgepigdaniel/parse5-bug/blob/master/index.js#L7-L8
See minimal reproduction here: https://github.com/hedgepigdaniel/parse5-bug
I tried to find a bug in the
parse5-sax-parserbut the test I created for it succeeds: https://github.com/inikulin/parse5/compare/master...hedgepigdaniel:test/waterline?expand=1So I assume that it has something to do with the
sourceCodeLocationInfooption passed to theSAXParserbyRewritingStream.An effective workaround is to set
RewritingStream().tokenizer.preprocessor.bufferWaterline = Infinityas seen here: https://github.com/hedgepigdaniel/parse5-bug/blob/master/index.js#L7-L8