Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / serialize-attribute.xhtml
blob580c96121ae52e9b13a7475d8da5e6f50ac3b9bd
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <title/>
4 <script>
5 <![CDATA[
6 function test() {
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 try {
12 serialized = (new XMLSerializer()).serializeToString(document.getElementById("testDiv\"'&<>"));
13 if (serialized == "<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"testDiv&quot;'&amp;&lt;&gt;\"/>" ||
14 serialized == "<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"testDiv&quot;'&amp;&lt;&gt;\"></div>" ||
15 serialized == "<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"testDiv&quot;'&amp;&lt;>\"/>" ||
16 serialized == "<div xmlns=\"http://www.w3.org/1999/xhtml\" id=\"testDiv&quot;'&amp;&lt;>\"></div>")
17 document.getElementById("result").textContent = "SUCCESS";
18 else
19 document.getElementById("result").textContent = "FAIL: " + (new XMLSerializer()).serializeToString(document.getElementsByTagName('div')[1]);
20 } catch (ex) {
21 alert(ex);
24 ]]>
25 </script>
26 </head>
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&#34;&#39;&#38;&#60;&#62;"/>
34 </body>
35 </html>