[whatwg] getElementById

timeless timeless at gmail.com
Mon May 10 13:06:09 PDT 2010

On Mon, May 10, 2010 at 9:10 PM, Perry Smith <pedzsan at gmail.com> wrote:
> I see places that explicitly state that the same object is returned on some operations.  For example, the element.style has that clause.
> I have not found in either html5 or the DOM documentation that is referenced an explicit statement to this effect for getElementById.

if someone changes the id value on the node you used to think about
and assigns it to another node then it most certainly will not return
the same node.

More information about the whatwg mailing list