1 <p><a href=
"rdar://problem/6621701">rdar://problem/
6621701</a> Test that XML resources with incorrect encoding retrieved via XMLHttpRequest are fully decoded,
2 cf.
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=17079">bug
17079</a>.
</p>
5 testRunner
.dumpAsText();
7 var req
= new XMLHttpRequest
;
8 req
.open("GET", "resources/broken-encoding.xml", false);
9 req
.overrideMimeType('text/xml');
10 req
.setRequestHeader("Cache-Control", "no-cache");
12 document
.write((req
.responseXML
.documentElement
.firstChild
.length
== 6) ? "PASS" : "FAIL");