mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
LibWeb: Make Element::set_inner_html take a StringView
It delegates to DOMParsing::inner_html_setter, which already takes a StringView.
This commit is contained in:
parent
dbd46f240b
commit
52fccae654
Notes:
sideshowbarker
2024-07-17 01:28:15 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/52fccae654 Pull-request: https://github.com/SerenityOS/serenity/pull/21174 Reviewed-by: https://github.com/awesomekling
2 changed files with 2 additions and 2 deletions
|
@ -715,7 +715,7 @@ WebIDL::ExceptionOr<DOM::Element const*> Element::closest(StringView selectors)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
WebIDL::ExceptionOr<void> Element::set_inner_html(DeprecatedString const& markup)
|
||||
WebIDL::ExceptionOr<void> Element::set_inner_html(StringView markup)
|
||||
{
|
||||
TRY(DOMParsing::inner_html_setter(*this, markup));
|
||||
return {};
|
||||
|
|
|
@ -188,7 +188,7 @@ public:
|
|||
CSS::CSSStyleDeclaration* style_for_bindings();
|
||||
|
||||
WebIDL::ExceptionOr<DeprecatedString> inner_html() const;
|
||||
WebIDL::ExceptionOr<void> set_inner_html(DeprecatedString const&);
|
||||
WebIDL::ExceptionOr<void> set_inner_html(StringView);
|
||||
|
||||
WebIDL::ExceptionOr<void> insert_adjacent_html(DeprecatedString position, DeprecatedString text);
|
||||
|
||||
|
|
Loading…
Reference in a new issue