@@new

Domenic Denicola domenic at domenicdenicola.com
Wed Jun 18 11:54:05 PDT 2014


From: Brendan Eich <brendan at mozilla.org>

> This all looks at the past, where the DOM is warty as hell (I can say that, I started it). What about the future?

Much the same, from what I understand. The parser needs to be able to create elements, including custom elements, without knowing what their constructor signature is. As specced [1], registering the element will set its @@create value to something that creates the element in this way, and presumably the parser will be updated to invoke @@create. (This is the same as how, in ES5, the parser invokes the `createdCallback` property passed to `registerElement`.)

Dmitri, did I get that right?

[1]: https://w3c.github.io/webcomponents/spec/custom/#es6


More information about the es-discuss mailing list