mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-22 18:22:07 +00:00
LibWeb: Mark a few calls to set_attribute as infallible
These cannot possibly throw an exception because the attribute names are already known to be valid.
This commit is contained in:
parent
b43bb2429a
commit
e95096d2a9
Notes:
github-actions[bot]
2025-01-15 07:47:49 +00:00
Author: https://github.com/trflynn89
Commit: e95096d2a9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3257
Reviewed-by: https://github.com/gmta ✅
3 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ void HTMLSummaryElement::activation_behavior(DOM::Event const&)
|
|||
if (parent->has_attribute(HTML::AttributeNames::open))
|
||||
parent->remove_attribute(HTML::AttributeNames::open);
|
||||
else
|
||||
parent->set_attribute(HTML::AttributeNames::open, String {}).release_value_but_fixme_should_propagate_errors();
|
||||
MUST(parent->set_attribute(HTML::AttributeNames::open, String {}));
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interactive-elements.html#summary-for-its-parent-details
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue