1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWeb: Serialize selectors only in CSSStyleRule::selector_text()

Previously, this was returning the serialization for the whole style
rule, which isn't what we want.
This commit is contained in:
Sam Atkins 2021-10-15 12:36:28 +01:00 committed by Linus Groh
parent e72286c0ec
commit 9f6a09837b

View file

@ -73,7 +73,7 @@ String CSSStyleRule::serialized() const
String CSSStyleRule::selector_text() const
{
// The selectorText attribute, on getting, must return the result of serializing the associated group of selectors.
return serialized();
return serialize_a_group_of_selectors(selectors());
}
// https://www.w3.org/TR/cssom/#dom-cssstylerule-selectortext