blob: 735ee073bdc23ae7a5cf3676f61b8b827b3a9728 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<html>
<head>
<script src="../../js/resources/js-test-pre.js"></script>
</head>
<body>
<script>
window.xmlDoc = document.implementation.createDocument(null, "example", null);
shouldBe('"createCDATASection" in window.xmlDoc', 'true');
shouldBeEqualToString('window.xmlDoc.createCDATASection("Hello").data', "Hello");
shouldThrow('window.xmlDoc.createCDATASection("Ha]]>o")');
shouldBeEqualToString('window.xmlDoc.createCDATASection(null).data', "null");
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>
</html>
|