Bug 193022
Summary: | [WPE] url/urlsearchparams-delete | ||
---|---|---|---|
Product: | WebKit | Reporter: | Zhaolin Yu <franklinyu> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | cdumez, ysuzuki |
Priority: | P2 | ||
Version: | Safari Technology Preview | ||
Hardware: | Mac | ||
OS: | macOS 10.14 |
Zhaolin Yu
Failing test: http://w3c-test.org/url/urlsearchparams-delete.any.html
Affected code:
test(function() {
var url = new URL('http://example.com/?');
url.searchParams.delete('param1');
assert_equals(url.href, 'http://example.com/', 'url.href does not have ?');
assert_equals(url.search, '', 'url.search does not have ?');
}, 'Removing non-existent param removes ? from URL');
This is the only failing test for URLSearchParams.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Zhaolin Yu
Note that this bug also affects Safari on latest iOS.
Yusuke Suzuki
Looks like fixed by bug 211456 :)
*** This bug has been marked as a duplicate of bug 211456 ***