You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
we're facing the same problem: the large contents of a script tag are truncated.
Can we move the priority of the bug and accept the bugfix that @qnighy provided?
BTW: we are using Angular13 and have no direct possibility to use the provided workaround above by @hedgepipdaniel
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=1So I assume that it has something to do with the
sourceCodeLocationInfo
option passed to theSAXParser
byRewritingStream
.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-L8The text was updated successfully, but these errors were encountered: