mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 01:27:31 +00:00
LibWeb: Add HTML::TagNames namespace for global tag name FlyStrings
Instead of "iframe", we can now say HTML::TagNames::iframe and avoid a FlyString lookup.
This commit is contained in:
@@ -69,7 +69,7 @@ private:
|
||||
template<>
|
||||
inline bool is<HTMLScriptElement>(const Node& node)
|
||||
{
|
||||
return is<Element>(node) && to<Element>(node).tag_name().equals_ignoring_case("script");
|
||||
return is<Element>(node) && to<Element>(node).tag_name() == HTML::TagNames::script;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user