Re: CSS pseudo-class in DOM

On Sat, 2003-04-19 at 03:03, Kang Jeong-Hee wrote:
> DOM Level 2 Style describe how to express CSS in DOM:
> http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule
> 
> and I don't know how to implement pseudo-class for selector.
> (I don't understand where to store selector part of rule in CSSRule, even)

The selector is stored as a string in CSSStyleRule.selectorText and your
pseudo-class must be part of it.

Philippe

Received on Thursday, 8 May 2003 13:36:38 UTC