1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

LibWeb: Add the URL::href attribute and URL::to_json method

This commit is contained in:
Idan Horowitz 2021-09-14 00:13:32 +03:00 committed by Andreas Kling
parent e6abc1b44e
commit 1841fbd3e4
3 changed files with 38 additions and 2 deletions

View file

@ -28,6 +28,11 @@ public:
static DOM::ExceptionOr<NonnullRefPtr<URL>> create_with_global_object(Bindings::WindowObject&, const String& url, const String& base);
String href() const;
DOM::ExceptionOr<void> set_href(String const&);
String to_json() const;
void set_query(Badge<URLSearchParams>, String query) { m_url.set_query(move(query)); }
private: