mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
LibWeb: Remove DOM element deprecated_get_attribute()
This commit is contained in:
parent
c477f90df7
commit
a681429dff
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/bplaat
Commit: a681429dff
Pull-request: https://github.com/SerenityOS/serenity/pull/22777
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/shannonbooth ✅
40 changed files with 114 additions and 122 deletions
|
@ -34,7 +34,7 @@ void HTMLMetaElement::initialize(JS::Realm& realm)
|
|||
|
||||
Optional<HTMLMetaElement::HttpEquivAttributeState> HTMLMetaElement::http_equiv_state() const
|
||||
{
|
||||
auto value = deprecated_attribute(HTML::AttributeNames::http_equiv);
|
||||
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)) \
|
||||
|
@ -96,7 +96,7 @@ void HTMLMetaElement::inserted()
|
|||
if (!has_attribute(AttributeNames::content))
|
||||
break;
|
||||
|
||||
auto input = deprecated_attribute(AttributeNames::content);
|
||||
auto input = get_attribute_value(AttributeNames::content);
|
||||
if (input.is_empty())
|
||||
break;
|
||||
|
||||
|
@ -105,7 +105,7 @@ void HTMLMetaElement::inserted()
|
|||
break;
|
||||
}
|
||||
default:
|
||||
dbgln("FIXME: Implement '{}' http-equiv state", deprecated_attribute(AttributeNames::http_equiv));
|
||||
dbgln("FIXME: Implement '{}' http-equiv state", get_attribute_value(AttributeNames::http_equiv));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue