1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

LibWeb: Return DOMException instead of crashing when setting attributes

This commit is contained in:
PrestonLTaylor 2023-05-25 20:37:57 +01:00 committed by Andreas Kling
parent 6891676fce
commit 5d3b7a5ecc
24 changed files with 57 additions and 51 deletions

View file

@ -20,7 +20,7 @@ public:
DeprecatedString origin() const;
DeprecatedString href() const;
void set_href(DeprecatedString);
WebIDL::ExceptionOr<void> set_href(DeprecatedString);
DeprecatedString protocol() const;
void set_protocol(DeprecatedString);
@ -52,7 +52,7 @@ public:
protected:
virtual DOM::Document& hyperlink_element_utils_document() = 0;
virtual DeprecatedString hyperlink_element_utils_href() const = 0;
virtual void set_hyperlink_element_utils_href(DeprecatedString) = 0;
virtual WebIDL::ExceptionOr<void> set_hyperlink_element_utils_href(DeprecatedString) = 0;
virtual bool hyperlink_element_utils_is_html_anchor_element() const = 0;
virtual bool hyperlink_element_utils_is_connected() const = 0;
virtual DeprecatedString hyperlink_element_utils_target() const = 0;