W3C home > Mailing lists > Public > public-webapi@w3.org > April 2006

Re: ACTION-87: Selectors API

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 03 Apr 2006 14:51:32 +0200
To: "Maciej Stachowiak" <mjs@apple.com>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.s7fnb6t864w2qv@id-c0020.oslo.opera.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:54 GMT