mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 19:22:53 +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:
parent
de3c007d79
commit
d828d80b75
Notes:
github-actions[bot]
2024-09-13 10:12:03 +00:00
Author: https://github.com/skyrising
Commit: d828d80b75
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1388
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue