Re: ACTION-87: Selectors API

On Wed, 22 Mar 2006 20:25:18 +0100, Maciej Stachowiak <mjs@apple.com>  
wrote:
>>> * IMHO the method should not raise an exception when the selector  
>>> contains a pseudo-element. It should would return an empty list.
>>
>> Given that it per definition only returns Element nodes I don't see why  
>> it shouldn't raise an exception.
>
> I think exceptions should be reserved for actual syntax errors, not for  
> selectors that can't match an element. I'm sure there are other ways  
> besides pseudo-elements to make a selector that can't match anything.

The current specification  
http://dev.w3.org/cvsweb/~checkout~/2006/webapi/selectors-api/draft/selectors-api.htm?content-type=text/html;%20charset=utf-8  
should reflect this.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 3 April 2006 12:53:59 UTC