Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / ampersand-escaped-parseXMLFragment.xhtml
blob2eb1d9516961776b0d0b4b2f34ea0d101cb95404
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <script type="text/javascript">
4 <![CDATA[
5 function test()
7 var html = '<div foo="&amp;"/>'
8 var element = document.body
9 var range = element.ownerDocument.createRange();
10 range.selectNodeContents(element);
11 var fragment = range.createContextualFragment(html);
13 document.body.appendChild(document.createTextNode("Should be &: " + fragment.firstChild.getAttribute('foo')));
15 if (window.testRunner)
16 testRunner.dumpAsText();
18 ]]>
19 </script>
20 </head>
21 <body onload="test()">
22 <p> Test case for <a href="http://bugs.webkit.org/show_bug.cgi?id=17403">bug 17403</a>: WebKit Creates Invalid Xhtml Links with Ajax</p>
23 <p> You should see the sentence: 'Should be &amp;: &amp;' (without the quotes) </p>
24 </body>
25 </html>