mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 17:55:06 +00:00
LibWeb: Port HTML Environments from ByteString
This commit is contained in:
parent
562e0d710c
commit
c63d30ce67
6 changed files with 14 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue