diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 0c0b68dadf..465189e205 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -715,7 +715,7 @@ WebIDL::ExceptionOr Element::closest(StringView selectors) return nullptr; } -WebIDL::ExceptionOr Element::set_inner_html(DeprecatedString const& markup) +WebIDL::ExceptionOr Element::set_inner_html(StringView markup) { TRY(DOMParsing::inner_html_setter(*this, markup)); return {}; diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h index 3d8bfaef62..67683400ea 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.h +++ b/Userland/Libraries/LibWeb/DOM/Element.h @@ -188,7 +188,7 @@ public: CSS::CSSStyleDeclaration* style_for_bindings(); WebIDL::ExceptionOr inner_html() const; - WebIDL::ExceptionOr set_inner_html(DeprecatedString const&); + WebIDL::ExceptionOr set_inner_html(StringView); WebIDL::ExceptionOr insert_adjacent_html(DeprecatedString position, DeprecatedString text);