Re: Web DOM Core

On Tue, 07 Sep 2010 10:47:01 +0200, Jonas Sicking <jonas@sicking.cc> wrote:
> For what it's worth, we still throw WRONG_DOCUMENT_ERR in a few places  
> in gecko:
>
> http://mxr.mozilla.org/mozilla-central/search?string=WRONG_DOCUMENT_ERR&find=\.cpp
>
> Some, but likely not all, of these can and should probably be removed.
> For example it makes sense that if during the call to adoptNode
> (implicit or explicit), if any UserDataHandler readopts the node to
> another owner document, then it makes sense for adoptNode to throw
> WRONG_DOCUMENT_ERR.

UserDataHandler is currently not part of the specification. I guess only  
Gecko implemented that.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Tuesday, 7 September 2010 09:07:40 UTC