mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
This was added in https://github.com/whatwg/url/commit/fdaa0e5a to fix a case where roundtrips could fail. We had already partially implemented these steps - but it seems this was missed in the update of URLSearchParams. Fixes the last failing WPT test for: https://wpt.live/url/urlsearchparams-delete.any.html
17 lines
472 B
HTML
17 lines
472 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const url = new URL('data:space ?test');
|
|
|
|
println(`URL pathname is '${url.pathname}'`);
|
|
println(`URL href is '${url.href}'`);
|
|
|
|
println(url.searchParams.has('test'));
|
|
url.searchParams.delete('test');
|
|
println(url.searchParams.has('test'));
|
|
|
|
println(`URL pathname is '${url.pathname}'`);
|
|
println(`URL href is '${url.href}'`);
|
|
});
|
|
</script>
|