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 
discussing.

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

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Friday, 3 February 2006 13:06:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:26 UTC