Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / dom / base / test / test_bug420609.xhtml
blob64cbe3e32016dc974d817cb639276a1d417af6cb
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <!--
5 https://bugzilla.mozilla.org/show_bug.cgi?id=420609
6 -->
7 <head>
8 <title>Test for Bug 420609</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=420609">Mozilla Bug 420609</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
16 &nbsp;&mdash;&sup1;&hellip;
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
20 <![CDATA[
22 /** Test for Bug 420609 **/
23 var request = new XMLHttpRequest();
24 request.open("GET", window.location.href, false);
25 request.send(null);
27 ok(request.responseXML && request.responseXML.documentElement.tagName == "html", "XMLHttpRequest should load XHTML document with entities");
28 is(document.getElementById("content").textContent, request.responseXML.getElementById("content").textContent, "Entities should be expanded in the document loaded by XMLHttpRequest");
29 ]]>
30 </script>
31 </pre>
32 </body>
33 </html>