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();