<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17105</bug_id>
          
          <creation_ts>2012-05-18 17:20:45 +0000</creation_ts>
          <short_desc>[Custom]: Specify a way to define custom DOM element prototypes</short_desc>
          <delta_ts>2012-06-11 21:24:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>17103</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dominicc</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67899</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-05-18 17:20:45 +0000</bug_when>
    <thetext>How do we associate a prototype with a custom DOM element definition?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67995</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-05-22 06:40:30 +0000</bug_when>
    <thetext>At one point we thought constructor= could point to an existing function, and hence its prototype would be used (and checked that the base element’s prototype was on the prototype chain.)

It would be nice to design something that was compatible with user-defined constructor bodies in some future version.

The current situation is tenable; authors could just mix in behavior to the prototype object that is created by the constructor generation algorithm.

If authors can specify a prototype, there’s a semantic question – do they specify the object which is first link in the prototype chain, and a separate prototype object is still synthesized; or do they specify the generated constructor’s prototype directly?

The former case (prototype object is always synthesized) leaves open the possibility of requiring GeneratedConstructor.prototype.constructor === GeneratedConstructor and implies that there is at least one unique prototype object per custom element. These might be useful properties for implementers to exploit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68926</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-06-11 21:24:20 +0000</bug_when>
    <thetext>Defined in http://dvcs.w3.org/hg/webcomponents/rev/e6edb53aa5d9 and on.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>