RESOLVED CONFIGURATION CHANGED 28182
The setter for CSSStyleRule.selectorText doesn't actually do anything.
https://bugs.webkit.org/show_bug.cgi?id=28182
Summary The setter for CSSStyleRule.selectorText doesn't actually do anything.
Andy Matuschak
Reported 2009-08-11 11:42:18 PDT
One might expect that calling someCSSStyleRule.selectorText = ".someOtherClass" might actually cause someCSSStyleRule's selector to change. That would be a foolish assumption indeed! See the attached sample .html; clicking the "foo" link should turn it black. Also, the rule's cssText is logged to the console after being changed from "foo" to "bar"; note that its selector is still ".foo". Firefox doesn't seem to implement this setter either, but the property is marked as readwrite in the spec: http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleRule
Attachments
Demonstration of selectorText's setter's fail. (276 bytes, text/html)
2009-08-11 11:44 PDT, Andy Matuschak
no flags
Andy Matuschak
Comment 1 2009-08-11 11:44:41 PDT
Created attachment 34581 [details] Demonstration of selectorText's setter's fail.
Alexey Shvayka
Comment 2 2020-03-13 10:09:38 PDT
(In reply to Andy Matuschak from comment #1) > Created attachment 34581 [details] > Demonstration of selectorText's setter's fail. Provided attachment works as expected as of rev. 258118. Tests: web-platform-tests/css/cssom/CSSStyleRule-set-selectorText.html web-platform-tests/css/cssom/selectorText-modification-restyle-*.html web-platform-tests/css/cssom/cssom-pagerule.html
Note You need to log in before you can comment on or make changes to this bug.