<?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>14967</bug_id>
          
          <creation_ts>2011-11-28 22:39:26 +0000</creation_ts>
          <short_desc>[Custom Elements]: Find a way to avoid &quot;x-&quot; prefix because it&apos;s ugly</short_desc>
          <delta_ts>2013-03-13 15:46:58 +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>18669</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>18511</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dominicc</cc>
    
    <cc>pierre</cc>
    
    <cc>syoichi</cc>
    
    <cc>therandshow</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60564</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2011-11-28 22:39:26 +0000</bug_when>
    <thetext>Here are several ideas:

* allow implicitly omitting the prefix in the attribute value
* put custom elements in a separate name space from the HTML elements, and use a flag indicator in declaration, either as part of extends attribute or as a separate flag attribute.
* specify the value of extends attribute as an explicit inheritance chain, thus narrowing the name space to the last-inherited value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63036</commentid>
    <comment_count>1</comment_count>
    <who name="John Thomas">therandshow</who>
    <bug_when>2012-01-24 04:48:37 +0000</bug_when>
    <thetext>Beyond ugliness, another reason to prefer non-dashed attributes is DOM Level 0 attribute-as-element-property access. Dashed attributes are unfriendly for that purpose</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67986</commentid>
    <comment_count>2</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-05-22 01:44:06 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Here are several ideas:
&gt; 
&gt; * allow implicitly omitting the prefix in the attribute value

This seems very messy:

• It hurts grepping
• It is confusing when you want to extend a custom element; then you need to use the x-, presumably.
• It makes custom elements that start with x- really confusing (ie x-x-foo) because you have to guess which level of prefixing is going to be applied, etc.

&gt; …
&gt; * specify the value of extends attribute as an explicit inheritance chain, thus
&gt; narrowing the name space to the last-inherited value.

Does this mean that if what a custom element extends changes, all of the elements that extend that one will break? That sounds tiresome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69380</commentid>
    <comment_count>3</comment_count>
    <who name="Pierre Réveillon">pierre</who>
    <bug_when>2012-06-25 09:39:29 +0000</bug_when>
    <thetext>How to include specific elements from different web components libraries?
For example, I include all-in-one &quot;iquery-ui.html&quot; and &quot;footools-library.html&quot; component files, and both provides a custom element with the same name?

The CSS bindings used in XBL seems to be a lot more scalable: it lets the developer decide the way to bind element, and it allows to choose which element of which file he wants to use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84344</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-03-13 15:46:58 +0000</bug_when>
    <thetext>In bug 18669, we switched to only require a dash in the custom tag. Closing this bug. Please file bugs on other parts of the spec -- there are at least two comments that aren&apos;t relevant to this bug.

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

    </bug>

</bugzilla>