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">
5 https://bugzilla.mozilla.org/show_bug.cgi?id=420609
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" />
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=420609">Mozilla Bug
420609</a>
15 <div id=
"content" style=
"display: none">
16 —¹…
19 <script class=
"testbody" type=
"text/javascript">
22 /** Test for Bug
420609 **/
23 var request = new XMLHttpRequest();
24 request.open(
"GET", window.location.href, false);
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");