Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. cssRule.selectorText
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Example
  4. 4. Notes
  5. 5. Specification
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Example
  4. 4. Notes
  5. 5. Specification

« 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

Page last modified 21:07, 10 Aug 2005 by Dria

Files (0)