mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Auto merge of #9294 - KiChjang:xhr-usvstring, r=nox
Change all DOMStrings to USV strings for XHR This is in compliance with the new spec [here](https://xhr.spec.whatwg.org/#xmlhttprequest). <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9294) <!-- Reviewable:end -->
This commit is contained in:
commit
7ae16c7ea3
4 changed files with 28 additions and 28 deletions
|
@ -1,5 +0,0 @@
|
|||
[open-url-encoding.htm]
|
||||
type: testharness
|
||||
[XMLHttpRequest: open() - URL encoding]
|
||||
expected: FAIL
|
||||
|
|
@ -12,10 +12,16 @@
|
|||
<script>
|
||||
test(function() {
|
||||
var client = new XMLHttpRequest()
|
||||
client.open("GET", "resources/content.py?ß", false)
|
||||
client.send(null)
|
||||
client.open("GET", "resources/content.py?\u00DF", false) // This is the German "eszett" character
|
||||
client.send()
|
||||
assert_equals(client.getResponseHeader("x-request-query"), "%C3%9F")
|
||||
})
|
||||
}, "percent encode characters");
|
||||
test(function() {
|
||||
var client = new XMLHttpRequest()
|
||||
client.open("GET", "resources/content.py?\uD83D", false)
|
||||
client.send()
|
||||
assert_equals(client.getResponseHeader("x-request-query"), "%EF%BF%BD")
|
||||
}, "lone surrogate should return U+FFFD");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue