mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Port HTML Environments from ByteString
This commit is contained in:
committed by
Andreas Kling
parent
562e0d710c
commit
c63d30ce67
@@ -308,7 +308,7 @@ bool EnvironmentSettingsObject::is_scripting_disabled() const
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#module-type-allowed
|
||||
bool EnvironmentSettingsObject::module_type_allowed(AK::ByteString const& module_type) const
|
||||
bool EnvironmentSettingsObject::module_type_allowed(StringView module_type) const
|
||||
{
|
||||
// 1. If moduleType is not "javascript", "css", or "json", then return false.
|
||||
if (module_type != "javascript"sv && module_type != "css"sv && module_type != "json"sv)
|
||||
|
||||
Reference in New Issue
Block a user