2022-02-15 22:10:51 +03:00
|
|
|
#import <URL/URLSearchParams.idl>
|
|
|
|
|
2022-10-08 01:45:09 +03:00
|
|
|
// https://url.spec.whatwg.org/#url
|
2023-03-01 22:10:01 +03:00
|
|
|
[Exposed=*, LegacyWindowAlias=webkitURL, UseNewAKString]
|
2021-09-14 00:10:22 +03:00
|
|
|
interface URL {
|
|
|
|
constructor(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();
|
2021-09-14 00:10:22 +03:00
|
|
|
};
|