David Bruant wrote:
With this definition, it's not possible to subclass the DOM
constructors, since they all throw. The DOM API itself would need to be
changed to allow subclassing.

Neither classes as proposed (sugar for the prototypal pattern) nor __proto__ can fix the DOM.

Note that Date has the same issue. You cannot make a SubDate because the internal state is not exposed to subclassers via private names. Allen propose to fix this, but I'm not sure of the proposal or status.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to