mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:58:12 +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;
|
||||
|
||||
// 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; }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#import <HTML/HTMLElement.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement
|
||||
[Exposed=Window, UseDeprecatedAKString]
|
||||
[Exposed=Window]
|
||||
interface HTMLScriptElement : HTMLElement {
|
||||
|
||||
[HTMLConstructor] constructor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue