1 <html xmlns=
"http://www.w3.org/1999/xhtml">
3 <script src=
"../../resources/js-test.js"></script>
8 description("Test that ProcessingInstruction inherits from CharacterData");
10 shouldBe("ProcessingInstruction.__proto__", "CharacterData");
11 shouldBe("ProcessingInstruction.prototype.__proto__", "CharacterData.prototype");
13 var processingInstruction
= document
.createProcessingInstruction("target", "data");
14 shouldBe("processingInstruction.__proto__.__proto__", "CharacterData.prototype");
16 shouldBeEqualToString("processingInstruction.target", "target");
17 shouldBeEqualToString("processingInstruction.data", "data");
18 shouldBe("processingInstruction.length", "4");
20 processingInstruction
.data
= null;
21 shouldBeEqualToString("processingInstruction.data", "");
22 shouldBe("processingInstruction.length", "0");