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: Sat, 04 Feb 2006 08:06:27 +1100
Message-ID: <43E3C5D3.1080204@lachy.id.au>
Blanchard, Todd wrote:
>> Any markup that causes a browser to automatically clone a node will 
>> be non-conformant and will be flagged as erroneous by a validator.
> You are assuming that validators run javascript - they generally 
> don't.

I'm well aware that validators don't run JavaScript and I'm talking 
about a case where they don't even need to.  Given this markup that will 
cause a node to be cloned by the Adoption Agency Algorithm:

<em id="x"><p>foo</em>bar</p>

The validator *will* flag that as an error and, according to the 
algorithm, it will also cause duplicate IDs, which is what we were 

The only case that won't happen is if that markup is written as a result 
of document.write() or innerHTML.

Lachlan Hunt
Received on Friday, 3 February 2006 13:06:27 UTC

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