mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Handle currently ignored WebIDL::ExceptionOr<T>s
This commit is contained in:
@@ -227,7 +227,7 @@ void DOMTokenList::set_value(String value)
|
||||
if (!associated_element)
|
||||
return;
|
||||
|
||||
associated_element->set_attribute(m_associated_attribute, move(value));
|
||||
MUST(associated_element->set_attribute(m_associated_attribute, move(value)));
|
||||
}
|
||||
|
||||
WebIDL::ExceptionOr<void> DOMTokenList::validate_token(StringView token) const
|
||||
@@ -251,7 +251,7 @@ void DOMTokenList::run_update_steps()
|
||||
return;
|
||||
|
||||
// 2. Set an attribute value for the associated element using associated attribute’s local name and the result of running the ordered set serializer for token set.
|
||||
associated_element->set_attribute(m_associated_attribute, value());
|
||||
MUST(associated_element->set_attribute(m_associated_attribute, value()));
|
||||
}
|
||||
|
||||
JS::Value DOMTokenList::item_value(size_t index) const
|
||||
|
||||
Reference in New Issue
Block a user