cssRules / ID selectors

Paul Temple paul.temple at gmx.net
Thu Feb 10 16:02:56 GMT 2005


Leo Savernik wrote:
> Am Donnerstag, 10. Februar 2005 02:02 schrieb Paul Temple:
> > Paul Temple wrote:
> > > When using an ID selector that starts with a '#' like this
> > >   #helloWorld { ... }
> >
> > Remark: When using ID selectors _not_ starting with a '#'
> > like this:
> >   h1#helloWorld { ... }
> > then "document.styleSheets[i].cssRules[j].selectorText"
> > returns h1[id"helloWord"]
> > (But the "WARNING: Unhandled case ..." is displayed here,
> > too)
>
> Because it's exactly that, unhandled. Note that there's no
> assignment between the attribute and the value -> illegal CSS
> -> bug -> should be fixed -> will change in the future.

What is illegal CSS? ID selectors? See
http://www.w3.org/TR/REC-CSS2/selector.html#id-selectors

Or the access to ID selectors via cssRules?

> Will you come up with a patch?

When I know more about the whys and whens, then maybe.




More information about the kfm-devel mailing list