mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Port HTMLScriptElement interface from DeprecatedString to String
This commit is contained in:
parent
914fb90bbe
commit
2ab7129595
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/shannonbooth
Commit: 2ab7129595
Pull-request: https://github.com/SerenityOS/serenity/pull/20926
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/trflynn89 ✅
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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue