From 2ee319ba231e657c634ca1cd6305dd215721e794 Mon Sep 17 00:00:00 2001 From: Collin Lefeber Date: Sat, 9 Nov 2024 16:54:04 -0500 Subject: [PATCH] posts/ladybird_attempt update --- posts/ladybird_attempt.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/posts/ladybird_attempt.md b/posts/ladybird_attempt.md index 8fff245..0ab206b 100644 --- a/posts/ladybird_attempt.md +++ b/posts/ladybird_attempt.md @@ -83,3 +83,26 @@ Userland/Libraries/LibWeb/CSS/CSSAnimation.idl looks very good readonly attribute CSSOMString animationName; }; + +Or Userland/Libraries/LibWeb/DOMURL/DOMURL.idl that has an example of a constructor value. + + #import + #import + + // https://url.spec.whatwg.org/#url + [Exposed=*, LegacyWindowAlias=webkitURL, ImplementedAs=DOMURL] + interface URL { + constructor(USVString url, optional USVString base); + + [ImplementedAs=parse_for_bindings] static DOMURL? parse(USVString url, optional USVString base); + static boolean canParse(USVString url, optional USVString base); + + stringifier attribute USVString href; + readonly attribute USVString origin; + attribute USVString protocol; + attribute USVString username; + + ... + + +