Decoupling [ ] and Property Access and the DOM (Was: Why not NodeList#forEach :\?)
erik.arvidsson at gmail.com
Tue Jun 19 09:31:42 PDT 2012
On Tue, Jun 19, 2012 at 8:37 AM, Allen Wirfs-Brock
<allen at wirfs-brock.com> wrote:
I'm a big fan of your proposal but it is unfortunately not sufficient
to express the current DOM. People do depend on MemberExpression too.
document.forms.bar instead of document.forms['bar']
frames.foo instead of frames['foo']
One thing we could do once/if the object model reformation is
implemented is to rename the current indexed and named properties in
WebIDL to LegacyIndexed and LegacyNamed and mandate that new
interfaces only use MemberLookup (square bracket lookup).
Still, I wonder if we don't need an alternative way to implement
indexed and named attributes from WebIDL to compatible with the web as
More information about the es-discuss