ProcessingInstruction-literal-2.xhtml (725B)
1 <?xml-stylesheet href="support/style.css" type="text/css"?> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>ProcessingInstruction literals</title> 5 <link rel="help" href="https://dom.spec.whatwg.org/#dom-processinginstruction-target"/> 6 <link rel="help" href="https://dom.spec.whatwg.org/#dom-characterdata-data"/> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 </head> 10 <body> 11 <div id="log"/> 12 <script> 13 test(function() { 14 var pienc = document.firstChild; 15 assert_true(pienc instanceof ProcessingInstruction) 16 assert_equals(pienc.target, "xml-stylesheet") 17 assert_equals(pienc.data, 'href="support/style.css" type="text/css"') 18 }) 19 </script> 20 </body> 21 </html>