selectorText gets/sets the textual representation of the selector for the rule set.
Syntax
text = cssRule.selectorText
cssRule.selectorText = text
Parameters
text is a string containing the text of the selector.
Example
// for cssrule: body { background-color: darkblue; }
cssrule = document.stylesheets[1] XXX.
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