blob: 738ecea227ef9fa21a96088627cc69ae75cd94a9 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.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>
</body>
</html>