mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Port HTMLScriptElement interface from DeprecatedString to String
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 06:09:44 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/2ab7129595 Pull-request: https://github.com/SerenityOS/serenity/pull/20926 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/trflynn89 ✅
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user