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:
parent
e6abc1b44e
commit
1841fbd3e4
3 changed files with 38 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue