Re: [SelectorsAPI] Selector detection needed?

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 UTC