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

LibWeb: Add the URL::{protocol, pathname, search, hash} attributes

This commit is contained in:
Idan Horowitz 2021-09-14 00:21:51 +03:00 committed by Andreas Kling
parent 7f9818bcbc
commit ed5128d759
3 changed files with 112 additions and 4 deletions

View file

@ -3,16 +3,16 @@ interface URL {
stringifier attribute USVString href;
readonly attribute USVString origin;
// TODO: attribute USVString protocol;
attribute USVString protocol;
attribute USVString username;
attribute USVString password;
attribute USVString host;
attribute USVString hostname;
attribute USVString port;
// TODO: attribute USVString pathname;
// TODO: attribute USVString search;
attribute USVString pathname;
attribute USVString search;
[SameObject] readonly attribute URLSearchParams searchParams;
// TODO: attribute USVString hash;
attribute USVString hash;
USVString toJSON();
};