W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2005

Re: [dom3core] WRONG_DOCUMENT_ERR

From: Maciej Stachowiak <mjs@apple.com>
Date: Mon, 5 Dec 2005 21:24:02 -0800
Message-Id: <8DAB8004-66E7-4464-81CB-A0218D60D2F1@apple.com>
Cc: www-dom@w3.org
To: Boris Zbarsky <bzbarsky@mit.edu>


On Dec 5, 2005, at 8:40 PM, Boris Zbarsky wrote:

> > However, historically browser-based DOM implementations have let you
> > reparent elements freely, and there are in fact web sites out there
> > that create an element in one document and then insert it into
> > another.
>
> Maciej, what particular websites are these?  The reason I ask is  
> that I was under the impression that IE/Windows actually throws  
> WRONG_DOCUMENT_ERR as specified; if it does, it's rather odd that  
> sites are doing things that would cause it to throw...

I tested, and it does appear to throw.

I think the sites where we ran into this were ones that had separate  
IE and Mozilla code paths, and Safari ended up in the Mozilla code  
path and therefore had to follow the Mozilla quirk. Given this, we  
would probably fix it in Safari if was fixed in Mozilla. Originally  
we had the conforming behavior on this. But there's a lot of sites  
out there that think there are exactly two browsers in the world.

Regards,
Maciej
Received on Tuesday, 6 December 2005 05:25:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT