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:
parent
914fb90bbe
commit
2ab7129595
2 changed files with 3 additions and 3 deletions
|
@ -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; }
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue