<?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>20801</bug_id>
          
          <creation_ts>2013-01-29 06:06:42 +0000</creation_ts>
          <short_desc>[Custom]: Custom element generation algorithm should be careful about its argument</short_desc>
          <delta_ts>2013-02-14 22:39:52 +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>DUPLICATE</resolution>
          <dup_id>20686</dup_id>
          
          <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="Morrita Hajime">morrita</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82262</commentid>
    <comment_count>0</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2013-01-29 06:06:42 +0000</bug_when>
    <thetext>In Section 4, custom element constructor generation algorithm, Step 5:

&gt; &quot;Set CONSTRUCTOR as the constructor property on PROTOTYPE.&quot;

If the PROTOTYPE is a built-in object like HTMLSpanElement.prototype, 
the algorithm overwrites its &quot;constructor&quot; property, which isn&apos;t good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82679</commentid>
    <comment_count>1</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2013-02-07 03:29:36 +0000</bug_when>
    <thetext>I think that we should just forbid which has &quot;constructor&quot; property for 
the prototype parameter. That means we cannot use HTMLSpanElement as an default.
The default will be then something like Object.create(HTMLSpanElement.prototype).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82717</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-02-07 21:47:30 +0000</bug_when>
    <thetext>I see what you&apos;re saying. If the user passes in an object that is already in the middle of a prototype chain, the algorithm will be breaking it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82727</commentid>
    <comment_count>3</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2013-02-08 01:17:26 +0000</bug_when>
    <thetext>hat you&apos;re saying. If the user passes in an object that is already in
&gt; the middle of a prototype chain, the algorithm will be breaking it.
Right. Basically, we shouldn&apos;t overwrite any existing properties.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83163</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-02-14 22:39:52 +0000</bug_when>
    <thetext>Merging this bug with 20686.

*** This bug has been marked as a duplicate of bug 20686 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>