2011/9/7 David Bruant <[email protected]> > ** > Le 07/09/2011 15:38, Tom Van Cutsem a écrit : > > [...] > > I still don't see how it would work out for NodeList or other host > objects. Then again, I don't know whether there is a use case that requires > this. > > Emulating the DOM, probably. It would still be possible to have > non-extensible trapping proxies, but not turn the proxy into a native DOM > Document/Node/Element/HTMLElement/DocumentFragment, etc... This could create > some bad performance penalty for DOM Traversers [1] for instance (or > querySelectorAll). Would it even be possible to have an "hybrid" DOM tree > with native DOM Node and emulated DOM Node? >
So a sealed/frozen DOM element requires no more interposition at all? Also, how straightforward would it be to brain-transplant a Proxy with, say, a NodeList, as opposed to brain-transplanting a Proxy with a regular Object?
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

