W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: Custom elements ES6/ES5 syntax compromise, was: document.register and ES6

From: Scott Miles <sjmiles@google.com>
Date: Thu, 14 Feb 2013 14:47:56 -0800
Message-ID: <CAHbmOLboawvffP530NA7H+QUtTExrTq5e_v=YbYJd=3ySxQrpA@mail.gmail.com>
To: Dimitri Glazkov <dglazkov@google.com>
Cc: Daniel Buchner <daniel@mozilla.com>, Rick Waldron <waldron.rick@gmail.com>, Erik Arvidsson <arv@chromium.org>, public-webapps <public-webapps@w3.org>, Boris Zbarsky <bzbarsky@mit.edu>, Anne van Kesteren <annevk@annevk.nl>
Developer cannot call HTMLButtonElement. So whatever work it represents
that MUST be done by the browser.

Perhaps the browser doesn't call that exact function, but in any event,
neither does any user code.

Note that we are specifically taking about built ins, not custom


On Thu, Feb 14, 2013 at 2:45 PM, Dimitri Glazkov <dglazkov@google.com>wrote:

> On Thu, Feb 14, 2013 at 2:40 PM, Scott Miles <sjmiles@google.com> wrote:
> > In all constructions the *actual* calling of HTMLButtonElement is done by
> > the browser.
> No, this is not correct. It's the exact opposite :)
> In this compromise proposal, the browser isn't calling any of the
> constructors. Arv pointed out that since the invention of [[Create]]
> override, we don't really need them anyway -- they never do anything
> useful for existing HTML elements.
> For your custom elements, I can totally see your library/framework
> having a convention of calling the super constructor.
> I did confuse matters but not putting in the invocation of the
> HTMLButtonElement.call.
> :DG<
Received on Thursday, 14 February 2013 22:48:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:58 UTC