W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2006

[whatwg] Update to the Adoption Agency Algorithm

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 03 Feb 2006 10:14:48 +1100
Message-ID: <43E29268.9090401@lachy.id.au>
Blanchard, Todd wrote:
> What I want to know is:  if the "cloned" node has an id attribute, 
> and id is meant to be unique, then how do we resolve this conflict? 
> I mention this because bad html and duplicate id's in documents have 
> caused havoc when trying to build javascript applications.

The ID attributes need to be duplicated in such cases, that's what 
existing browsers do.  Although it may cause trouble with some scripts 
that use getElementById() and depend on there only being one instance, 
it is up to the markup author to fix that.

Lachlan Hunt
Received on Thursday, 2 February 2006 15:14:48 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:45 UTC