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
document.write('<div><scr'+'ipt>var x = 1;</scr'+'ipt><span>HTML</span><'+'/div>');
The correct output (without crapLoader) is:
<div><span>HTML</span></div>
With crapLoader the result is:
<div></div><span>HTML</span>
The "split" function works fine (with support.splitWithCapturingParentheses = true):
["<div>","<script>var x = 1;</script>","<span>HTML</span></div>"]
The problem seems to be that later in the function "checkWriteBuffer" the HTML fragments are written to the document independently. I do not yet have an idea how to fix this issue.
[Btw, with support.splitWithCapturingParentheses = false the split does not work correctly, but that's another bug that is independent from this issue here:]
["<script>var x = 1;</script>","<span>HTML</span></div>"]
The text was updated successfully, but these errors were encountered:
I've found yet another crappy ad with a script tag that does not exist at the top-level but inside another tag.
Test case:
crap-ad.js:
The correct output (without crapLoader) is:
With crapLoader the result is:
The "split" function works fine (with support.splitWithCapturingParentheses = true):
The problem seems to be that later in the function "checkWriteBuffer" the HTML fragments are written to the document independently. I do not yet have an idea how to fix this issue.
[Btw, with support.splitWithCapturingParentheses = false the split does not work correctly, but that's another bug that is independent from this issue here:]
The text was updated successfully, but these errors were encountered: