W3C home > Mailing lists > Public > www-style@w3.org > April 2008

Re: [SelectorsAPI] Selector detection needed?

From: Alan Gresley <alan@css-class.com>
Date: Tue, 08 Apr 2008 03:12:04 +1000
Message-ID: <47FA55E4.4020803@css-class.com>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, www-style@w3.org

Bjoern Hoehrmann wrote:

>     ...
>     E > F [ok]
>     E + F [no]
>     ...
> 
> For which I would naturally call the methods on an empty document or
> an isolated element. Quite frankly even then this is a lot nicer then
> doing something like
> 
>   if (document.supportsSelector(DocumentSelector.CSS_TYPE_SELECTOR) &&
>       document.supportsSelector(DocumentSelector.CSS_CHILD_COMBINER))
>     ...
> 
> As has been suggested initially in this thread.


Why do you need to query support for > and +. Only IE6/Win and earlier 
would need to be queried. What other implementation doesn't support 
descendant or sibling selectors?


Alan
Received on Monday, 7 April 2008 17:13:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:04 GMT