mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
LibWeb: Use correct http-equiv keywords for comparisons
Previously `#keyword` was used in the macro, meaning all keywords gained `""` around them
This commit is contained in:
committed by
Andreas Kling
parent
de3c007d79
commit
d828d80b75
@@ -38,7 +38,7 @@ Optional<HTMLMetaElement::HttpEquivAttributeState> HTMLMetaElement::http_equiv_s
|
||||
auto value = get_attribute_value(HTML::AttributeNames::http_equiv);
|
||||
|
||||
#define __ENUMERATE_HTML_META_HTTP_EQUIV_ATTRIBUTE(keyword, state) \
|
||||
if (value.equals_ignoring_ascii_case(#keyword##sv)) \
|
||||
if (value.equals_ignoring_ascii_case(keyword##sv)) \
|
||||
return HTMLMetaElement::HttpEquivAttributeState::state;
|
||||
ENUMERATE_HTML_META_HTTP_EQUIV_ATTRIBUTES
|
||||
#undef __ENUMERATE_HTML_META_HTTP_EQUIV_ATTRIBUTE
|
||||
|
||||
Reference in New Issue
Block a user