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.  :)

Received on Sunday, 28 January 2007 04:01:56 UTC

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