Language References
DOM Level 2 Specification.
Returns a string that identifies what elements the corresponding rule applies to.
HTML |
N/A |
Script |
[ sSelectorText = ] rule.selectorText |
sSelectorText |
String specifying the element the rule applies to. |
The property is read-only.
This property returns the textual representation of the selector for the rule set.
A selector can either be a simple selector ( such as 'H1' ) or a contextual selector ( such as 'H1 B' ), which consists of several simple selectors.
rule
rules