mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
LibWeb: Add a bare implementation of the URL built-in
This only has the constructor implemented for now.
This commit is contained in:
parent
30849b10d5
commit
e6abc1b44e
8 changed files with 103 additions and 1 deletions
18
Userland/Libraries/LibWeb/URL/URL.idl
Normal file
18
Userland/Libraries/LibWeb/URL/URL.idl
Normal file
|
@ -0,0 +1,18 @@
|
|||
interface URL {
|
||||
constructor(USVString url, optional USVString base);
|
||||
|
||||
// TODO: stringifier attribute USVString href;
|
||||
// TODO: readonly attribute USVString origin;
|
||||
// TODO: attribute USVString protocol;
|
||||
// TODO: attribute USVString username;
|
||||
// TODO: attribute USVString password;
|
||||
// TODO: attribute USVString host;
|
||||
// TODO: attribute USVString hostname;
|
||||
// TODO: attribute USVString port;
|
||||
// TODO: attribute USVString pathname;
|
||||
// TODO: attribute USVString search;
|
||||
// TODO: [SameObject] readonly attribute URLSearchParams searchParams;
|
||||
// TODO: attribute USVString hash;
|
||||
|
||||
// TODO: USVString toJSON();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue