This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17145 - [Custom]: HTMLElementElement should have a generatedConstructor attribute
Summary: [Custom]: HTMLElementElement should have a generatedConstructor attribute
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14968
  Show dependency treegraph
 
Reported: 2012-05-22 02:18 UTC by Dominic Cooney
Modified: 2012-05-30 21:07 UTC (History)
0 users

See Also:


Attachments

Description Dominic Cooney 2012-05-22 02:18:27 UTC
Per the explainer <https://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html#using-custom-elements-in-script> you need a way to refer to the constructor generated by a HTMLElementElement.

It is possible that the "constructor" attribute could do double duty for this, just like

<input id="x" form="y">

produces

document.querySelector('#x').form => [object HTMLFormElement]

then HTMLElementElement.constructor could be typed to being a script object.
Comment 1 Dimitri Glazkov 2012-05-30 21:07:32 UTC
http://dvcs.w3.org/hg/webcomponents/rev/847712bf845e