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:
parent
e72286c0ec
commit
9f6a09837b
Notes:
sideshowbarker
2024-07-18 02:18:05 +09:00
Author: https://github.com/AtkinsSJ
Commit: 9f6a09837b
Pull-request: https://github.com/SerenityOS/serenity/pull/10484
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue