« Gecko DOM Reference
Summary
selectorText gets/sets the textual representation of the selector for the rule set.
Syntax
string = cssRule.selectorText
cssRule.selectorText = string
Example
// for cssrule: body { background-color: darkblue; }
cssrule = document.styleSheets[1]
!!TODO!!
selector = cssrule.selectorText;
// selector is now "body"
Notes
The implementation may have stripped out insignificant whitespace while parsing the selector.
Specification
DOM Level 2 Style - cssRule