mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 21:45:29 +00:00
LibWeb: Fix <body> and <img> elements not parsing their class attribute
Subclasses that override Element::parse_attribute() must always call to base class since otherwise we might forget to parse some attributes. This makes class selectors work on <body> and <img> elements. :^)
This commit is contained in:
@@ -60,6 +60,7 @@ void HTMLBodyElement::apply_presentational_hints(StyleProperties& style) const
|
||||
|
||||
void HTMLBodyElement::parse_attribute(const FlyString& name, const String& value)
|
||||
{
|
||||
HTMLElement::parse_attribute(name, value);
|
||||
if (name.equals_ignoring_case("link")) {
|
||||
auto color = Color::from_string(value);
|
||||
if (color.has_value())
|
||||
|
||||
Reference in New Issue
Block a user