1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

LibWeb: Add the URL::href attribute and URL::to_json method

This commit is contained in:
Idan Horowitz 2021-09-14 00:13:32 +03:00 committed by Andreas Kling
parent e6abc1b44e
commit 1841fbd3e4
3 changed files with 38 additions and 2 deletions

View file

@ -1,7 +1,7 @@
interface URL {
constructor(USVString url, optional USVString base);
// TODO: stringifier attribute USVString href;
stringifier attribute USVString href;
// TODO: readonly attribute USVString origin;
// TODO: attribute USVString protocol;
// TODO: attribute USVString username;
@ -14,5 +14,5 @@ interface URL {
// TODO: [SameObject] readonly attribute URLSearchParams searchParams;
// TODO: attribute USVString hash;
// TODO: USVString toJSON();
USVString toJSON();
};