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 22:01:42 -0600
Message-ID: <45BC2026.3020206@mit.edu>
To: "public-webapi@w3.org" <public-webapi@w3.org>

Bjoern Hoehrmann wrote:
>   Note: .foo("#id") is not equivalent to document.getElementById('id')
>   if multiple elements have the same ID. This method returns the first 
>   element in document order with the given ID, while getElementById's
>   behavior is undefined in this case.

I would like to put in a vote for this.  It's pretty much word-for-word 
how I would have written it.  :)

-Boris
Received on Sunday, 28 January 2007 04:01:56 GMT

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