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

LibWeb: Handle currently ignored WebIDL::ExceptionOr<T>s

This commit is contained in:
Linus Groh 2022-10-30 17:50:04 +00:00
parent f01d90aa63
commit acfb546048
38 changed files with 153 additions and 149 deletions

View file

@ -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 attributes 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