diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-10-15 12:36:28 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-16 15:16:27 +0100 |
commit | 9f6a09837b627447325f1d077cabc05078e4a2ac (patch) | |
tree | c551a4b76bee22ce0b7f679f207ddc89b46a7654 /Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp | |
parent | e72286c0ec624c7ac0038dd637e0b3a361b4480b (diff) | |
download | serenity-9f6a09837b627447325f1d077cabc05078e4a2ac.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp index 2f4203e41c..79748719a4 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp +++ b/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp @@ -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 |