1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:18:12 +00:00

LibWeb: Make factory method of DOM::DOMTokenList fallible

This commit is contained in:
Kenneth Myhra 2023-02-14 21:34:28 +01:00 committed by Linus Groh
parent 1e03aa0ece
commit 251c063897
3 changed files with 4 additions and 4 deletions

View file

@ -455,7 +455,7 @@ NonnullRefPtr<CSS::StyleProperties> Element::resolved_css_values()
DOMTokenList* Element::class_list()
{
if (!m_class_list)
m_class_list = DOMTokenList::create(*this, HTML::AttributeNames::class_);
m_class_list = DOMTokenList::create(*this, HTML::AttributeNames::class_).release_value_but_fixme_should_propagate_errors();
return m_class_list;
}