W3C home > Mailing lists > Public > public-webapi@w3.org > January 2007

Re: Selectors API: Multiple elements with the same ID

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 27 Jan 2007 18:06:00 -0500
To: "Bjoern Hoehrmann" <derhoermi@gmx.net>, "Simon Pieters" <zcorpan@gmail.com>
Cc: "public-webapi@w3.org" <public-webapi@w3.org>
Message-ID: <op.tmt44au264w2qv@id-c0020.nomadprime.subscribe.loganwifi.com>

On Sat, 27 Jan 2007 13:30:58 -0500, Bjoern Hoehrmann <derhoermi@gmx.net>  
wrote:
> This is out of scope of the document. The method would return all
> elements that match the selector. When an element matches a selector
> is defined by the CSS Selectors specification. If that specification
> is unclear about this case, that's for the CSS WG to address. All
> the API specification could usefully say is how getElementById(...)
> compares to the method that returns a single element if we are to
> keep that method, since the behavior of the two may be different.

Yes, they are prolly slightly different (although I haven't actually seen  
any documentation on how getElementById exactly works). Do you have any  
proposed text? Or should we wait until it's clear how getElementById  
really works?


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Saturday, 27 January 2007 23:07:22 GMT

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