LibWeb/URLPattern: Implement the URLPattern IDL getters

These simply return the compiled URLPattern pattern strings for
each component, and whether any of the components contained any
regexp groups.
This commit is contained in:
Shannon Booth
2025-02-04 15:25:19 +13:00
committed by Tim Flynn
parent f3662c6f88
commit cf7b775709
3 changed files with 92 additions and 9 deletions

View File

@@ -10,16 +10,16 @@ interface URLPattern {
URLPatternResult? exec(optional URLPatternInput input = {}, optional USVString baseURL);
[FIXME] readonly attribute USVString protocol;
[FIXME] readonly attribute USVString username;
[FIXME] readonly attribute USVString password;
[FIXME] readonly attribute USVString hostname;
[FIXME] readonly attribute USVString port;
[FIXME] readonly attribute USVString pathname;
[FIXME] readonly attribute USVString search;
[FIXME] readonly attribute USVString hash;
readonly attribute USVString protocol;
readonly attribute USVString username;
readonly attribute USVString password;
readonly attribute USVString hostname;
readonly attribute USVString port;
readonly attribute USVString pathname;
readonly attribute USVString search;
readonly attribute USVString hash;
[FIXME] readonly attribute boolean hasRegExpGroups;
readonly attribute boolean hasRegExpGroups;
};
// https://urlpattern.spec.whatwg.org/#dictdef-urlpatterninit