RE: Defining a constructor for Element and friends

From: Anne van Kesteren [mailto:annevk@annevk.nl] 

> 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

Received on Friday, 16 January 2015 19:09:05 UTC