4 <script src=
"../../../resources/js-test.js"></script>
8 window
.xmlDoc
= document
.implementation
.createDocument(null, "example", null);
9 shouldBe('"createCDATASection" in window.xmlDoc', 'true');
10 shouldBeEqualToString('window.xmlDoc.createCDATASection("Hello").data', "Hello");
11 shouldThrow('window.xmlDoc.createCDATASection("Ha]]>o")');
12 shouldBeEqualToString('window.xmlDoc.createCDATASection(null).data', "null");