mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibHTML: Ignore case of presentation attribute names
This commit is contained in:
@@ -14,7 +14,7 @@ HTMLFontElement::~HTMLFontElement()
|
||||
void HTMLFontElement::apply_presentational_hints(StyleProperties& style) const
|
||||
{
|
||||
for_each_attribute([&](auto& name, auto& value) {
|
||||
if (name == "color") {
|
||||
if (name.equals_ignoring_case("color")) {
|
||||
auto color = Color::from_string(value);
|
||||
if (color.has_value())
|
||||
style.set_property(CSS::PropertyID::Color, ColorStyleValue::create(color.value()));
|
||||
|
||||
Reference in New Issue
Block a user