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

Re: Selectors API: Multiple elements with the same ID

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Sat, 27 Jan 2007 21:56:21 -0600
Message-ID: <45BC1EE5.80205@mit.edu>
To: Robert Sayre <sayrer@gmail.com>
CC: Anne van Kesteren <annevk@opera.com>, Bjoern Hoehrmann <derhoermi@gmx.net>, Simon Pieters <zcorpan@gmail.com>, "public-webapi@w3.org" <public-webapi@w3.org>

Robert Sayre wrote:
> MSDN says it returns the "first object".
> 
> <http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/getelementbyid.asp> 

For what it's worth, that's not what Gecko does, and I personally would 
rather not try to enforce that -- it's somewhat expensive to do so in 
the face of DOM mutations.

-Boris
Received on Sunday, 28 January 2007 03:56:53 GMT

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