1// GENERATED CONTENT - DO NOT EDIT
2// Content was automatically extracted by Reffy into webref
3// (https://github.com/w3c/webref)
4// Source: URL Standard (https://url.spec.whatwg.org/)
5
6[Exposed=(Window,Worker),
7 LegacyWindowAlias=webkitURL]
8interface URL {
9  constructor(USVString url, optional USVString base);
10
11  stringifier attribute USVString href;
12  readonly attribute USVString origin;
13           attribute USVString protocol;
14           attribute USVString username;
15           attribute USVString password;
16           attribute USVString host;
17           attribute USVString hostname;
18           attribute USVString port;
19           attribute USVString pathname;
20           attribute USVString search;
21  [SameObject] readonly attribute URLSearchParams searchParams;
22           attribute USVString hash;
23
24  USVString toJSON();
25};
26
27[Exposed=(Window,Worker)]
28interface URLSearchParams {
29  constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = "");
30
31  undefined append(USVString name, USVString value);
32  undefined delete(USVString name);
33  USVString? get(USVString name);
34  sequence<USVString> getAll(USVString name);
35  boolean has(USVString name);
36  undefined set(USVString name, USVString value);
37
38  undefined sort();
39
40  iterable<USVString, USVString>;
41  stringifier;
42};
43