blob: 0a038108dd21f3082cb4c1eb1630d25dd88dab3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
DOMParser/XMLSerializer test
The "text to parse" and "document object serialized" boxes should show the same text, and it should be an XML document, not "@@No result@@".
text to parse
<?xml version="1.0"?>
<!DOCTYPE doc [
<!ATTLIST d id ID #IMPLIED>
]>
<doc>
<foo xmlns="foobar">One</foo> <x:bar xmlns:x="barfoo">Two</x:bar>
<d id="id3">Three</d>
<f id="&<>>">Four&<></f><empty/><empty></empty></doc>
document object
[object XMLDocument]
document object serialized
<?xml version="1.0"?><!DOCTYPE doc><doc>
<foo xmlns="foobar">One</foo> <x:bar xmlns:x="barfoo">Two</x:bar>
<d id="id3">Three</d>
<f id="&<>>">Four&<></f><empty/><empty/></doc>
|