Re: [DOMCore] minor wording problem for Document.importNode()

>> But the clone algorithm can throw a DATA_CLONE_ERR, so the "must return
>> a clone" isn't, in general, possible.
>
> Should we support cloning Document and DocumentType objects? (There's an
> "<!--XXX wrong? -->" comment in the source.)
>
>

Cloning Document and DocumentType using cloneNode is supported in all major browsers. importNode however, should not allow Document to be imported, because a document can't be owned by another. A DocumentType can though.

Received on Sunday, 3 July 2011 03:01:03 UTC