W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2011

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

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Sun, 03 Jul 2011 04:00:21 +0100
To: www-dom@w3.org
Message-ID: <op.vx0vyvuijz3wb9@coruscant>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:17 UTC