mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Return DOMException instead of crashing when setting attributes
This commit is contained in:
committed by
Andreas Kling
parent
6891676fce
commit
5d3b7a5ecc
@@ -38,9 +38,9 @@ DeprecatedString HTMLAreaElement::hyperlink_element_utils_href() const
|
||||
return attribute(HTML::AttributeNames::href);
|
||||
}
|
||||
|
||||
void HTMLAreaElement::set_hyperlink_element_utils_href(DeprecatedString href)
|
||||
WebIDL::ExceptionOr<void> HTMLAreaElement::set_hyperlink_element_utils_href(DeprecatedString href)
|
||||
{
|
||||
MUST(set_attribute(HTML::AttributeNames::href, move(href)));
|
||||
return set_attribute(HTML::AttributeNames::href, move(href));
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex
|
||||
|
||||
Reference in New Issue
Block a user