summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-10-15 12:36:28 +0100
committerLinus Groh <mail@linusgroh.de>2021-10-16 15:16:27 +0100
commit9f6a09837b627447325f1d077cabc05078e4a2ac (patch)
treec551a4b76bee22ce0b7f679f207ddc89b46a7654 /Userland/Libraries/LibWeb/CSS/CSSStyleRule.cpp
parente72286c0ec624c7ac0038dd637e0b3a361b4480b (diff)
downloadserenity-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.cpp2
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