Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/webappapis/dynamic-markup-insertion/opening-the-input-stream/document.open-01.xhtml - WPT Dashboard Interop Dashboard
<head>
<title>document.open in XHTML</title>
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
test(function() {
assert_throws_dom("INVALID_STATE_ERR", function() {
document.open();
}, "document.open in XHTML should throw an INVALID_STATE_ERR ");
}, "document.open in XHTML");
</script>
</body>
</html>