blob: 74e167ac8c491548db137a89a08dfbdd37eee1ee [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
debug("Verify that a fragment's DOCTYPE does not affect parsing. We expect DOCTYPEs to be ignored for fragments with context elements.");
var container = document.createElement("div");
document.body.appendChild(container);
container.innerHTML = "<!DOCTYPE html><p><table>"
shouldBeNull("container.firstChild.nextSibling");
</script>
<p id="test"><table></table>
<script>
debug ("Verify that a fragment's DOCTYPE does not change the compatibility mode of the owner document.");
var test = document.getElementById("test");
shouldBeNull("container.firstChild.nextSibling");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>