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

Re: Prototypes for adopted nodes

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 9 Aug 2010 11:56:56 -0700
Message-ID: <AANLkTi=DoJdBBi1J_mNQ-QfgmgtBGmvFTZxCw2kuWX2S@mail.gmail.com>
To: Travis Leithead <travil@microsoft.com>
Cc: Andrew Oakley <andrew@ado.is-a-geek.net>, "www-dom@w3.org" <www-dom@w3.org>
On Mon, Aug 9, 2010 at 11:17 AM, Travis Leithead <travil@microsoft.com> wrote:
> In IE9, we switch the script context ownership of a given node when it is grafted into the primary markup for the adopting script context. In other words, simply referencing a node from a different script context is not sufficient to have its prototype ownerhip change; rather it must become part of the tree.
>
> We do this to ensure that all the nodes in a primary markup tree are consistently in the same prototype context.

I believe we do the same thing in Firefox, for essentially the same reason.

/ Jonas
Received on Monday, 9 August 2010 18:57:48 GMT

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