Implement URL::parse() (#32819)

* Implement URL::parse()

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

* fix: Make handling more idiomatic

Signed-off-by: Shane Handley <shanehandley@fastmail.com>

---------

Signed-off-by: Shane Handley <shanehandley@fastmail.com>
This commit is contained in:
shanehandley 2024-07-22 18:48:16 +10:00 committed by GitHub
parent a007baa4cf
commit 45eabad169
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 25 additions and 129 deletions

View file

@ -8,6 +8,7 @@
interface URL {
[Throws] constructor(USVString url, optional USVString base);
static URL? parse(USVString url, optional USVString base);
static boolean canParse(USVString url, optional USVString base);
[SetterThrows]