4 <meta http-equiv=
"content-type" content=
"text/html; charset=UTF-8">
7 <p>Test for
<a href=
"http://crbug.com/277526">http://crbug.com/
277526</a>:
8 XMLHttpRequest normalizes the data sent to the server into Unicode NFC.
</p>
9 <div id=
"result">FAIL: script didn't run to completion.
</div>
12 if (window
.testRunner
)
13 testRunner
.dumpAsText();
15 var xhr
= new XMLHttpRequest
;
16 xhr
.open("POST", "resources/post-echo-as-utf-8.cgi", false);
17 xhr
.setRequestHeader("content-type", "application/json; charset=UTF-8");
18 xhr
.send("{\"key\":\"\\n\u0300\"}");
19 if (xhr
.responseText
== "{\"key\":\"\\n\u0300\"}")
20 document
.getElementById("result").firstChild
.data
= "SUCCESS";
22 document
.getElementById("result").firstChild
.data
= "FAILURE: '" + xhr
.responseText
+ "'";