<?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>26852</bug_id>
          
          <creation_ts>2014-09-19 10:00:15 +0000</creation_ts>
          <short_desc>[Custom]: Specify preference of localName and typeExtension in createElement</short_desc>
          <delta_ts>2015-07-06 08:14:11 +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>MOVED</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>14968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Deepak Singla">deepak.sa</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>wchen</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111787</commentid>
    <comment_count>0</comment_count>
    <who name="Deepak Singla">deepak.sa</who>
    <bug_when>2014-09-19 10:00:15 +0000</bug_when>
    <thetext>As specified in instantiation of custom elements that &quot;custom tag&quot; will take preference over &quot;type extension&quot;, it is required to specify the same in case of createElement(...) .

 Element createElement(DOMString localName, DOMString typeExtension);

Here if localName is also a custom tag, then what will be the prototype of &quot;Element&quot;? Will it be of typeExtension or of localName.

Consider the following case:

var xA = doc.registerElement(&quot;x-a&quot;);
var xB = doc.registerElement(&quot;x-b&quot;);

var customElement = doc.createElement(&quot;x-a&quot;, &quot;x-b&quot;);

What should be the prototype of customElement?

AFAIK, this will be the same case as specifying:

&lt;x-a is=&quot;x-b&quot;&gt;&lt;/x-a&gt;

In this case prototype will be of &quot;x-a&quot;.

If the above theory is correct, then web-platform-tests/custom-elements/instantiating-custom-elements/extensions-to-document-interface/create-element-interface-type-is-a-type-extension.html test case is wrong.

If this issue has been raised earlier, then please provide the link and close this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121723</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 08:14:11 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/167</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>