1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09: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
Notes: sideshowbarker 2024-07-18 02:18:05 +09:00

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