1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-06-18 14:29:25 +00:00
Files
UXP/docshell/test/navigation/file_document_write_1.html
T
wolfbeast b753aec164 Issue #1118 - Part 6: Fix various tests that are no longer correct.
The behavior change of document.open() requires these tests to be
changed to account for the new spec behavior.
2019-12-28 21:20:04 +08:00

20 lines
482 B
HTML

<html>
<head>
<script>
function start() {
var length = history.length;
document.open();
document.write("<h5 id='dynamic'>document.written content</h5>");
document.close();
opener.is(history.length, length,
"document.open/close should not change history");
opener.nextTest();
window.close();
}
</script>
</head>
<body onload="start();">
<h5>static content</h5>
</body>
</html>