tenfourfox/docshell/test/file_pushState_after_document_open.html

12 lines
356 B
HTML
Raw Permalink Normal View History

2017-04-19 07:56:45 +00:00
<!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>