diff options
author | Linus Groh <mail@linusgroh.de> | 2022-10-30 17:50:04 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-31 14:12:44 +0000 |
commit | acfb5460488410c2bd9bf8094b72cb088d7f9cf7 (patch) | |
tree | 37afb247b8413df2601a003387f22a71cd3df615 /Userland/Libraries/LibWeb/HTML/HTMLElement.cpp | |
parent | f01d90aa635953abf270d2c68bae6676837986f5 (diff) | |
download | serenity-acfb5460488410c2bd9bf8094b72cb088d7f9cf7.zip |
LibWeb: Handle currently ignored `WebIDL::ExceptionOr<T>`s
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLElement.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp index 32c675bfa3..09ed957825 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.cpp @@ -101,11 +101,11 @@ WebIDL::ExceptionOr<void> HTMLElement::set_content_editable(String const& conten return {}; } if (content_editable.equals_ignoring_case("true"sv)) { - set_attribute(HTML::AttributeNames::contenteditable, "true"); + MUST(set_attribute(HTML::AttributeNames::contenteditable, "true")); return {}; } if (content_editable.equals_ignoring_case("false"sv)) { - set_attribute(HTML::AttributeNames::contenteditable, "false"); + MUST(set_attribute(HTML::AttributeNames::contenteditable, "false")); return {}; } return WebIDL::SyntaxError::create(realm(), "Invalid contentEditable value, must be 'true', 'false', or 'inherit'"); @@ -114,7 +114,7 @@ WebIDL::ExceptionOr<void> HTMLElement::set_content_editable(String const& conten void HTMLElement::set_inner_text(StringView text) { remove_all_children(); - append_child(document().create_text_node(text)); + MUST(append_child(document().create_text_node(text))); set_needs_style_update(true); } |