mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
9b6a1de777
This was an addition to the URL spec, see: https://github.com/whatwg/url/commit/58acb0
30 lines
1023 B
Plaintext
30 lines
1023 B
Plaintext
#import <FileAPI/Blob.idl>
|
|
#import <DOMURL/URLSearchParams.idl>
|
|
|
|
// https://url.spec.whatwg.org/#url
|
|
[Exposed=*, LegacyWindowAlias=webkitURL, ImplementedAs=DOMURL]
|
|
interface URL {
|
|
constructor(USVString url, optional USVString base);
|
|
|
|
[ImplementedAs=parse_for_bindings] static DOMURL? parse(USVString url, optional USVString base);
|
|
static boolean canParse(USVString url, optional USVString base);
|
|
|
|
stringifier attribute USVString href;
|
|
readonly attribute USVString origin;
|
|
attribute USVString protocol;
|
|
attribute USVString username;
|
|
attribute USVString password;
|
|
attribute USVString host;
|
|
attribute USVString hostname;
|
|
attribute USVString port;
|
|
attribute USVString pathname;
|
|
attribute USVString search;
|
|
[SameObject] readonly attribute URLSearchParams searchParams;
|
|
attribute USVString hash;
|
|
|
|
USVString toJSON();
|
|
|
|
static DOMString createObjectURL(Blob obj); // FIXME: Should be (Blob or MediaSource).
|
|
static undefined revokeObjectURL(DOMString url);
|
|
};
|