1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 12:05:06 +00:00
serenity/Userland/Libraries/LibWeb/URL/URL.idl

28 lines
913 B
Text

#import <FileAPI/Blob.idl>
#import <URL/URLSearchParams.idl>
// https://url.spec.whatwg.org/#url
[Exposed=*, LegacyWindowAlias=webkitURL, UseNewAKString]
interface URL {
constructor(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);
};