1 <html xmlns=
"http://www.w3.org/1999/xhtml">
9 testRunner
.dumpAsText();
12 serialized
= (new XMLSerializer()).serializeToString(document
.getElementById("testDiv\"'&<>"));
13 if (serialized
== "<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"testDiv"'&<>\"/>" ||
14 serialized
== "<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"testDiv"'&<>\"></div>" ||
15 serialized
== "<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"testDiv"'&<>\"/>" ||
16 serialized
== "<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"testDiv"'&<>\"></div>")
17 document
.getElementById("result").textContent
= "SUCCESS";
19 document
.getElementById("result").textContent
= "FAIL: " + (new XMLSerializer()).serializeToString(document
.getElementsByTagName('div')[1]);
27 <body onload=
"test();">
28 <p>Test for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=11998">bug
11998</a>:
29 Incorrect serialization of quotation marks in XML attributes.
</p>
30 <div id=
"result">FAIL: cannot find an element.
</div>
32 <!-- Currently, WebKit doesn't serialize the namespace unless it's explicitly specified, bug 5262 -->
33 <div xmlns=
"http://www.w3.org/1999/xhtml" id=
"testDiv"'&<>"/>