Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html [<?x y?>]><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>XML: Processing instruction in doctype internal subset</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
test(() => {
assert_equals(document.documentElement.previousSibling, document.firstChild);
assert_equals(document.firstChild.nodeType, Node.DOCUMENT_TYPE_NODE);
});
</script>
</body>
</html>