From 2ab7129595423eb66c5a0938af00aef9fd26838b Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 3 Sep 2023 15:26:16 +1200 Subject: [PATCH] LibWeb: Port HTMLScriptElement interface from DeprecatedString to String --- Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h | 4 ++-- Userland/Libraries/LibWeb/HTML/HTMLScriptElement.idl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h index 78abe051e9..f693c03cb9 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.h @@ -44,9 +44,9 @@ public: virtual void inserted() override; // https://html.spec.whatwg.org/multipage/scripting.html#dom-script-supports - static bool supports(JS::VM&, DeprecatedString const& type) + static bool supports(JS::VM&, StringView type) { - return type.is_one_of("classic", "module"); + return type.is_one_of("classic"sv, "module"sv); } void set_source_line_number(Badge, size_t source_line_number) { m_source_line_number = source_line_number; } diff --git a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.idl index 4887c79340..f4f4449bde 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLScriptElement.idl @@ -1,7 +1,7 @@ #import // https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement -[Exposed=Window, UseDeprecatedAKString] +[Exposed=Window] interface HTMLScriptElement : HTMLElement { [HTMLConstructor] constructor();