domenic at domenicdenicola.com
Wed Jun 18 09:09:41 PDT 2014
From: es-discuss <es-discuss-bounces at mozilla.org> on behalf of Boris Zbarsky <bzbarsky at MIT.EDU>
> While true, I'd like to see a concrete proposal about how we actually proceed with making the web platform subclassable in the @@create world. Whereas in the @@new world subclassibility by default is at least somewhat viable...
Hmm, I thought we'd already established how this would work. It's pretty seamless with the @@create approach. See:
The "domPointer" stuff is kind of handwavey, but it's still pretty clear how it would work.
Following up on Arv's point about the DOM's use of @@create, my understanding is that having the two-phase initialization is quite important for the DOM, e.g. elements created by the parser will be allocated but never initialized (their constructors will never run). You can see this in action today with e.g. HTMLImageElement.
More information about the es-discuss