2023-08-02 01:49:32 +03:00
|
|
|
#import <FileAPI/Blob.idl>
|
2024-02-11 09:48:56 +03:00
|
|
|
#import <DOMURL/URLSearchParams.idl>
|
2022-02-15 22:10:51 +03:00
|
|
|
|
2022-10-08 01:45:09 +03:00
|
|
|
// https://url.spec.whatwg.org/#url
|
2024-02-11 09:48:56 +03:00
|
|
|
[Exposed=*, LegacyWindowAlias=webkitURL, ImplementedAs=DOMURL]
|
2021-09-14 00:10:22 +03:00
|
|
|
interface URL {
|
|
|
|
constructor(USVString url, optional USVString base);
|
|
|
|
|
2024-05-13 07:10:19 +03:00
|
|
|
[ImplementedAs=parse_for_bindings] static DOMURL? parse(USVString url, optional USVString base);
|
2023-04-11 15:57:34 +03:00
|
|
|
static boolean canParse(USVString url, optional USVString base);
|
|
|
|
|
2021-09-14 00:13:32 +03:00
|
|
|
stringifier attribute USVString href;
|
2021-09-14 00:18:25 +03:00
|
|
|
readonly attribute USVString origin;
|
2021-09-14 00:21:51 +03:00
|
|
|
attribute USVString protocol;
|
2021-09-14 00:18:25 +03:00
|
|
|
attribute USVString username;
|
|
|
|
attribute USVString password;
|
2021-09-14 00:21:29 +03:00
|
|
|
attribute USVString host;
|
|
|
|
attribute USVString hostname;
|
|
|
|
attribute USVString port;
|
2021-09-14 00:21:51 +03:00
|
|
|
attribute USVString pathname;
|
|
|
|
attribute USVString search;
|
2021-09-14 00:15:41 +03:00
|
|
|
[SameObject] readonly attribute URLSearchParams searchParams;
|
2021-09-14 00:21:51 +03:00
|
|
|
attribute USVString hash;
|
2021-09-14 00:10:22 +03:00
|
|
|
|
2021-09-14 00:13:32 +03:00
|
|
|
USVString toJSON();
|
2023-08-02 01:49:32 +03:00
|
|
|
|
|
|
|
static DOMString createObjectURL(Blob obj); // FIXME: Should be (Blob or MediaSource).
|
|
|
|
static undefined revokeObjectURL(DOMString url);
|
2021-09-14 00:10:22 +03:00
|
|
|
};
|