summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/ProcessingInstruction-in-doctype.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/dom/nodes/ProcessingInstruction-in-doctype.xhtml')
-rw-r--r--testing/web-platform/tests/dom/nodes/ProcessingInstruction-in-doctype.xhtml15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/dom/nodes/ProcessingInstruction-in-doctype.xhtml b/testing/web-platform/tests/dom/nodes/ProcessingInstruction-in-doctype.xhtml
new file mode 100644
index 0000000000..c35e710f9c
--- /dev/null
+++ b/testing/web-platform/tests/dom/nodes/ProcessingInstruction-in-doctype.xhtml
@@ -0,0 +1,15 @@
+<!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>