1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb: Port HTMLScriptElement interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-09-03 15:26:16 +12:00 committed by Tim Flynn
parent 914fb90bbe
commit 2ab7129595
2 changed files with 3 additions and 3 deletions

View file

@ -44,9 +44,9 @@ public:
virtual void inserted() override; virtual void inserted() override;
// https://html.spec.whatwg.org/multipage/scripting.html#dom-script-supports // 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<HTMLParser>, size_t source_line_number) { m_source_line_number = source_line_number; } void set_source_line_number(Badge<HTMLParser>, size_t source_line_number) { m_source_line_number = source_line_number; }

View file

@ -1,7 +1,7 @@
#import <HTML/HTMLElement.idl> #import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement // https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement
[Exposed=Window, UseDeprecatedAKString] [Exposed=Window]
interface HTMLScriptElement : HTMLElement { interface HTMLScriptElement : HTMLElement {
[HTMLConstructor] constructor(); [HTMLConstructor] constructor();