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>  
>>> * 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  
should reflect this.

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

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