[whatwg] cloneNode and HTML elements

Maciej Stachowiak mjs at apple.com
Thu Sep 10 05:10:43 PDT 2009


On Sep 10, 2009, at 5:01 AM, Anne van Kesteren wrote:

> On Thu, 10 Sep 2009 13:57:03 +0200, Maciej Stachowiak  
> <mjs at apple.com> wrote:
>> Indeed, we seem to copy the following things for form controls:  
>> value,
>> checked state, indeterminate state. We don't seem to do anything
>> special for any other elements.
>>
>> The change to clone form state was made based on this bug report: <https://bugs.webkit.org/show_bug.cgi?id=5177
>> >. The bug report cites Mozilla and IE behavior but does not mention
>> a real-world site depending on this, though I would presume there was
>> one.
>>
>> I think this behavior should be specified in HTML5.
>
> I guess that makes sense. Though I would personally prefer if we  
> could move the HTML5 specific bits of DOM Core to Web DOM Core which  
> then would simply state the exceptions for HTML documents. That way  
> the methods are defined in one place which makes more sense to me.
>

Is Web DOM Core official enough that HTML5 could normatively reference  
it yet? Once it has some standing, it might make sense to move HTML  
exceptions to DOM Core behavior there. Until then, I think it makes  
sense to define them in HTML5.

Regards,
Maciej




More information about the whatwg mailing list