Re: Selectors API: Multiple elements with the same ID

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 UTC