summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/URL
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-10-07 16:45:09 -0600
committerAndreas Kling <kling@serenityos.org>2022-10-09 10:14:57 +0200
commit67ceba2e6a98c280eb685dfa7559beef09a35409 (patch)
tree78eb5e696ca22b9e5acbdf46f7d20068c7db206d /Userland/Libraries/LibWeb/URL
parent0265041d44b313e18d097d30fb8e204fa367c5f9 (diff)
downloadserenity-67ceba2e6a98c280eb685dfa7559beef09a35409.zip
LibWeb: Add Exposed attribute and IDL spec links where missing
The intent is to use these to autogenerate prototype declarations for Window and WorkerGlobalScope classes. And the spec links are just nice to have :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/URL')
-rw-r--r--Userland/Libraries/LibWeb/URL/URL.idl2
-rw-r--r--Userland/Libraries/LibWeb/URL/URLSearchParams.idl2
2 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/URL/URL.idl b/Userland/Libraries/LibWeb/URL/URL.idl
index 4848173774..47b64bee7c 100644
--- a/Userland/Libraries/LibWeb/URL/URL.idl
+++ b/Userland/Libraries/LibWeb/URL/URL.idl
@@ -1,5 +1,7 @@
#import <URL/URLSearchParams.idl>
+// https://url.spec.whatwg.org/#url
+[Exposed=*, LegacyWindowAlias=webkitURL]
interface URL {
constructor(USVString url, optional USVString base);
diff --git a/Userland/Libraries/LibWeb/URL/URLSearchParams.idl b/Userland/Libraries/LibWeb/URL/URLSearchParams.idl
index b5030d004b..2ee96906b1 100644
--- a/Userland/Libraries/LibWeb/URL/URLSearchParams.idl
+++ b/Userland/Libraries/LibWeb/URL/URLSearchParams.idl
@@ -1,3 +1,5 @@
+// https://url.spec.whatwg.org/#urlsearchparams
+[Exposed=*]
interface URLSearchParams {
constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = "");