Re: Defining a constructor for Element and friends

Anne van Kesteren <[email protected]> Fri, 16 Jan 2015 14:02:58 +0100
Newsgroups gmane.comp.web.dom.general,gmane.org.w3c.webapps
Message-ID <CADnb78gLb4xMgGUoSZ9i09pS9C3X6LDSaZY_KThqnqhEEq_wyg@mail.gmail.com>
On Fri, Jan 16, 2015 at 12:34 AM, Domenic Denicola <[email protected]> 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?


-- 
https://annevankesteren.nl/