url.idl (1525B)
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=*, 7 LegacyWindowAlias=webkitURL] 8 interface URL { 9 constructor(USVString url, optional USVString base); 10 11 static URL? parse(USVString url, optional USVString base); 12 static boolean canParse(USVString url, optional USVString base); 13 14 stringifier attribute USVString href; 15 readonly attribute USVString origin; 16 attribute USVString protocol; 17 attribute USVString username; 18 attribute USVString password; 19 attribute USVString host; 20 attribute USVString hostname; 21 attribute USVString port; 22 attribute USVString pathname; 23 attribute USVString search; 24 [SameObject] readonly attribute URLSearchParams searchParams; 25 attribute USVString hash; 26 27 USVString toJSON(); 28 }; 29 30 [Exposed=*] 31 interface URLSearchParams { 32 constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = ""); 33 34 readonly attribute unsigned long size; 35 36 undefined append(USVString name, USVString value); 37 undefined delete(USVString name, optional USVString value); 38 USVString? get(USVString name); 39 sequence<USVString> getAll(USVString name); 40 boolean has(USVString name, optional USVString value); 41 undefined set(USVString name, USVString value); 42 43 undefined sort(); 44 45 iterable<USVString, USVString>; 46 stringifier; 47 };