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
{{ message }}
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
If the IFRAME is splitted in 2 writes like:
document.write('<IFRAME SRC="...">');
document.write('</IFRAME>');
then it's not treated as an atomic token but the first write as start tag which is not fine.
An side effect is that the 'done' write function is not executed and the active stream is not reset.
The solution I found working is adding the iframe check to the peekTokenImpl function
like:
if (token.type === 'startTag' && /script|style|iframe/i.test(token.tagName)) {
return null;
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If the IFRAME is splitted in 2 writes like:
document.write('<IFRAME SRC="...">');
document.write('</IFRAME>');
then it's not treated as an atomic token but the first write as start tag which is not fine.
An side effect is that the 'done' write function is not executed and the active stream is not reset.
The solution I found working is adding the iframe check to the peekTokenImpl function
like:
if (token.type === 'startTag' && /script|style|iframe/i.test(token.tagName)) {
return null;
}
The text was updated successfully, but these errors were encountered: