|
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 type="text/javascript" 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 —¹… |
|
17 </div> |
|
18 <pre id="test"> |
|
19 <script class="testbody" type="text/javascript"> |
|
20 <![CDATA[ |
|
21 |
|
22 /** Test for Bug 420609 **/ |
|
23 var request = new XMLHttpRequest(); |
|
24 request.open("GET", window.location.href, false); |
|
25 request.send(null); |
|
26 |
|
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> |
|
34 |