RE: Defining a constructor for Element and friends

Domenic Denicola <[email protected]> Fri, 16 Jan 2015 19:08:30 +0000
Newsgroups gmane.comp.web.dom.general,gmane.org.w3c.webapps
Message-ID <DM2PR0501MB1373C4302E2B913BA0F0F6F0DF4F0@DM2PR0501MB1373.namprd05.prod.outlook.com>
From: Anne van Kesteren [mailto:[email protected]] 

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

Nah, it just automatically starts acting like HTMLQuoteElement: the localName option becomes required. See 

https://github.com/domenic/element-constructors/blob/5e6e00bb2bb525f04c8c796e467f103c8aa0bcf7/element-constructors.js#L229-L233

https://github.com/domenic/element-constructors/blob/5e6e00bb2bb525f04c8c796e467f103c8aa0bcf7/element-constructors.js#L51-L54