LibWeb: Implement URL.parse

This was an addition to the URL spec, see:

https://github.com/whatwg/url/commit/58acb0
This commit is contained in:
Shannon Booth 2024-05-13 16:10:19 +12:00 committed by Andreas Kling
commit 9b6a1de777
Notes: sideshowbarker 2024-07-16 23:03:06 +09:00
5 changed files with 123 additions and 10 deletions

View file

@ -29,6 +29,7 @@ public:
static WebIDL::ExceptionOr<String> create_object_url(JS::VM&, JS::NonnullGCPtr<FileAPI::Blob> object);
static WebIDL::ExceptionOr<void> revoke_object_url(JS::VM&, StringView url);
static JS::GCPtr<DOMURL> parse_for_bindings(JS::VM&, String const& url, Optional<String> const& base = {});
static bool can_parse(JS::VM&, String const& url, Optional<String> const& base = {});
WebIDL::ExceptionOr<String> href() const;