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

Re: Defining a constructor for Element and friends

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 16 Jan 2015 14:02:58 +0100
Message-ID: <CADnb78gLb4xMgGUoSZ9i09pS9C3X6LDSaZY_KThqnqhEEq_wyg@mail.gmail.com>
To: Domenic Denicola <d@domenic.me>
Cc: WebApps WG <public-webapps@w3.org>, "www-dom@w3.org" <www-dom@w3.org>, Yehuda Katz <wycats@gmail.com>
On Fri, Jan 16, 2015 at 12:34 AM, Domenic Denicola <d@domenic.me> wrote:
> One interesting thing that falls out of the design is that it's trivial to allow a custom element class to be registered for multiple names; it requires no more work on the part of the class author than writing a class that corresponds to a single name, and is painless to use for consumers.

How can that work if the custom element constructor needs to look in
the registry to find its name? Pick a name at random?

Received on Friday, 16 January 2015 13:03:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:43 UTC