Bug 193022 - [WPE] url/urlsearchparams-delete
Summary: [WPE] url/urlsearchparams-delete
Status: RESOLVED DUPLICATE of bug 211456
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.14
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-24 15:31 PST by Zhaolin Yu
Modified: 2022-01-22 16:03 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhaolin Yu 2018-12-24 15:31:20 PST
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.
Comment 1 Zhaolin Yu 2019-01-07 17:43:11 PST
Note that this bug also affects Safari on latest iOS.
Comment 2 Yusuke Suzuki 2022-01-22 16:03:22 PST
Looks like fixed by bug 211456 :)

*** This bug has been marked as a duplicate of bug 211456 ***