Re: Prototypes for adopted nodes

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 UTC