Revision a0c94c0314444cca00420448d57485ccbefcef7e authored by Gerald Squelart on 10 February 2016, 07:55:33 UTC, committed by Jean-Yves Avenard on 26 February 2016, 03:43:42 UTC
1 parent 64152cc
Raw File
file_pushState_after_document_open.html
<!DOCTYPE html>
<script>
  document.addEventListener("DOMContentLoaded", function() {
    document.open();
    document.write("<!DOCTYPE html>New Document here");
    document.close();
    // Notify parent via postMessage, since otherwise exceptions will not get
    // caught by its onerror handler.
    parent.postMessage("doTest", "*");
  });
</script>
back to top