Skip to content

Commit fcd7eab

Browse files
committed
XHR: responseURL with fragment
For whatwg/xhr#200.
1 parent d0960dc commit fcd7eab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

xhr/responseurl-fragment.any.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// META global=window,dedicatedworker,sharedworker
2+
3+
async_test(t => {
4+
const client = new XMLHttpRequest(),
5+
url = new URL("resources/base.xml#test", location).href;
6+
client.open("GET", url);
7+
client.send();
8+
client.onload = t.step_func_done(() => {
9+
assert_equals(client.responseURL, url);
10+
});
11+
}, "responseURL should preserve the fragment");

0 commit comments

Comments
 (0)