OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <?xml-stylesheet href="support/style.css" type="text/css"?> |
| 3 <?xml-stylesheet href="data:text/css,A&'" type="text/css"?> |
| 4 <?xml-stylesheet href="data:text/css,A&'" type="text/css"?> |
| 5 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 6 <head> |
| 7 <title>ProcessingInstruction numeric escapes</title> |
| 8 <link rel="help" href="https://dom.spec.whatwg.org/#dom-processinginstruction-ta
rget"/> |
| 9 <link rel="help" href="https://dom.spec.whatwg.org/#dom-characterdata-data"/> |
| 10 <script src="/resources/testharness.js"></script> |
| 11 <script src="/resources/testharnessreport.js"></script> |
| 12 </head> |
| 13 <body> |
| 14 <div id="log"/> |
| 15 <script> |
| 16 <![CDATA[ |
| 17 test(function() { |
| 18 var pienc = document.firstChild.nextSibling; |
| 19 assert_true(pienc instanceof ProcessingInstruction) |
| 20 assert_equals(pienc.target, "xml-stylesheet") |
| 21 assert_equals(pienc.data, 'href="data:text/css,A&'" type="text/c
ss"') |
| 22 assert_equals(pienc.sheet.href, "data:text/css,A&'"); |
| 23 |
| 24 pienc = pienc.nextSibling; |
| 25 assert_true(pienc instanceof ProcessingInstruction) |
| 26 assert_equals(pienc.target, "xml-stylesheet") |
| 27 assert_equals(pienc.data, 'href="data:text/css,A&'" type="text/cs
s"') |
| 28 assert_equals(pienc.sheet.href, "data:text/css,A&'"); |
| 29 }) |
| 30 ]]> |
| 31 </script> |
| 32 </body> |
| 33 </html> |
OLD | NEW |