<?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>27976</bug_id>
          
          <creation_ts>2015-02-07 18:52:01 +0000</creation_ts>
          <short_desc>[Custom]: type extensions should be available as custom tags, not only through &lt;baseTag is=&quot;...&quot;&gt;</short_desc>
          <delta_ts>2015-07-06 08:09:42 +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="Randy Harmon">rjharmon0316+w3</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>m1879</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117737</commentid>
    <comment_count>0</comment_count>
    <who name="Randy Harmon">rjharmon0316+w3</who>
    <bug_when>2015-02-07 18:52:01 +0000</bug_when>
    <thetext>It seems to me that it&apos;s unnecessarily limiting to require that users specify the base tag type and also the extension tag.  It seems to prevent the direct use of semantic tags which happen to use a non-generic html tag prototype.

This might be simply a clarity issue, where in 11.2 Type Extension Example, you could specify that &lt;button is=tequila-button&gt; is equivalent to &lt;tequila-button&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117742</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-02-07 21:44:19 +0000</bug_when>
    <thetext>If you want the HTML spec (and hence browsers) to think it&apos;s a button, you can&apos;t call it &lt;tequila-button&gt;, because both the HTML spec and browser implementations are in terms of the localName of the element.  So are browser extensions, various web libraries, and so forth.

This has been discussed at quite some length several times already.  Doing this in a green-field design might have made sense, but at this point we&apos;re talking about boiling the ocean.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117750</commentid>
    <comment_count>2</comment_count>
    <who name="Randy Harmon">rjharmon0316+w3</who>
    <bug_when>2015-02-08 21:25:05 +0000</bug_when>
    <thetext>OK.  Thanks for the info.

Seems worth an aside in the doc, just to clarify that for current compatibility reasons, a native element cannot be considered a native element by the browser if it is extended via is=&quot;&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117751</commentid>
    <comment_count>3</comment_count>
    <who name="Randy Harmon">rjharmon0316+w3</who>
    <bug_when>2015-02-08 21:26:08 +0000</bug_when>
    <thetext>s/cannot/can only/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118019</commentid>
    <comment_count>4</comment_count>
    <who name="markg">m1879</who>
    <bug_when>2015-02-19 03:48:52 +0000</bug_when>
    <thetext>I have not seen this stated very explicitly anywhere. How about a note in the spec at someplace like this location:

http://w3c.github.io/webcomponents/spec/custom/#custom-tag-example

It might make it clear like this:

&quot;If you want a custom element to extend a native element like &lt;button&gt;, then you cannot use a custom tag name for it. Instead, you must use the native element tagname with the @is attribute, something like &lt;button is=&quot;my-button&quot;&gt;. It will not work to use a custom tag such as &lt;my-button&gt; to extend &lt;button&gt; (HTMLButtonElement prototype).

&quot;Saying it another way, custom tagnames can only be used when you are not extending a native element (other than the default HTMLElement).&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121685</commentid>
    <comment_count>5</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 08:09:42 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/147</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>