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; + + ... + + +