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

RE: Defining a constructor for Element and friends

From: Domenic Denicola <d@domenic.me>
Date: Fri, 16 Jan 2015 19:08:30 +0000
To: Anne van Kesteren <annevk@annevk.nl>
CC: WebApps WG <public-webapps@w3.org>, "www-dom@w3.org" <www-dom@w3.org>, Yehuda Katz <wycats@gmail.com>
Message-ID: <DM2PR0501MB1373C4302E2B913BA0F0F6F0DF4F0@DM2PR0501MB1373.namprd05.prod.outlook.com>
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

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:25 UTC