[patch] Re: cssRules / ID selectors

Paul Temple paul.temple at gmx.net
Fri Feb 11 22:46:30 GMT 2005


Leo Savernik wrote:
> Am Freitag, 11. Februar 2005 04:30 schrieb Paul Temple:
> > -    if ( cs->tag == 0xffffffff && cs->attr == ATTR_ID &&
> > cs->match == CSSSelector::Exact )
> > +    if ( cs->tag == 0xffffffff && cs->match ==
> > CSSSelector::Id )
>
> Does it still work if you write
>
>     if ( cs->tag == 0xffffffff && cs->attr == ATTR_ID &&
> cs->match == CSSSelector::Id )

Yes, it works, though I don't yet fully understand what cs->attr 
is about.
I thought it handles attribute selectors like for instance
input[type=button]
At least later in that method it is used for that.

I'll look into that when I finished configuring my new system... 
If you have an explanation on why cs->attr is not only used for 
attribute selectors, tell me please :)




More information about the kfm-devel mailing list