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

Re: ACTION-87: Selectors API

From: Maciej Stachowiak <mjs@apple.com>
Date: Wed, 22 Mar 2006 11:25:18 -0800
Message-Id: <9CB9609B-49AA-4F33-A411-927EB189287D@apple.com>
Cc: Ian Hickson <ian@hixie.ch>, "Web APIs WG (public)" <public-webapi@w3.org>
To: Anne van Kesteren <annevk@opera.com>

On Mar 22, 2006, at 2:30 AM, Anne van Kesteren 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  

Received on Wednesday, 22 March 2006 19:25:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:20 UTC