mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
LibWeb: Convert ShadowRoot to use TRY for error propagation
This commit is contained in:
parent
a68d31debd
commit
46bb547dd6
1 changed files with 1 additions and 3 deletions
|
@ -39,9 +39,7 @@ String ShadowRoot::inner_html() const
|
|||
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
||||
ExceptionOr<void> ShadowRoot::set_inner_html(String const& markup)
|
||||
{
|
||||
auto result = DOMParsing::inner_html_setter(*this, markup);
|
||||
if (result.is_exception())
|
||||
return result.exception();
|
||||
TRY(DOMParsing::inner_html_setter(*this, markup));
|
||||
|
||||
set_needs_style_update(true);
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue