Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /dom/nodes/ProcessingInstruction-literal-2.xhtml - WPT Dashboard Interop Dashboard
<?xml-stylesheet href="support/style.css" type="text/css"?>
<head>
<title>ProcessingInstruction literals</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"/>
<script>
test(function() {
var pienc = document.firstChild;
assert_true(pienc instanceof ProcessingInstruction)
assert_equals(pienc.target, "xml-stylesheet")
assert_equals(pienc.data, 'href="support/style.css" type="text/css"')
})
</script>
</body>
</html>