mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +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
|
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
||||||
ExceptionOr<void> ShadowRoot::set_inner_html(String const& markup)
|
ExceptionOr<void> ShadowRoot::set_inner_html(String const& markup)
|
||||||
{
|
{
|
||||||
auto result = DOMParsing::inner_html_setter(*this, markup);
|
TRY(DOMParsing::inner_html_setter(*this, markup));
|
||||||
if (result.is_exception())
|
|
||||||
return result.exception();
|
|
||||||
|
|
||||||
set_needs_style_update(true);
|
set_needs_style_update(true);
|
||||||
return {};
|
return {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue