Re: Selectors API: Multiple elements with the same ID

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 UTC