<?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>23255</bug_id>
          
          <creation_ts>2013-09-16 14:10:00 +0000</creation_ts>
          <short_desc>[Custom]: Requirements on custom element type names</short_desc>
          <delta_ts>2013-10-05 11:52:43 +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>14968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>annevk</cc>
    
    <cc>mrbkap</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93424</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-09-16 14:10:00 +0000</bug_when>
    <thetext>&quot;The custom element type identifies a custom element interface and is a sequence of alphanumeric ASCII characters&quot;

HTML&apos;s data-* attributes aren&apos;t restricted to alphanumeric ASCII. Why is the alphenumeric requirement there? Does it make sense for data-* also? Or vice versa?

Another thing is that the names should be required to be in ASCII lowercase, since the HTML parser case-folds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94318</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-10-04 19:21:46 +0000</bug_when>
    <thetext>I should just remove the &quot;alpanumeric ASCII characters&quot; bit. The NCName product is clearly specified just a few words later, and it&apos;s sufficient.

As far as the case is concerned, case-folding is only applicable in HTML documents. The definition construction algorithm does the actual work: https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-definition-construction-algorithm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94319</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-10-04 19:28:20 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcomponents/rev/f790c96a29e3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94330</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-10-04 20:35:16 +0000</bug_when>
    <thetext>I think it&apos;s a bad idea to allow uppercase names in XHTML. It violates http://www.w3.org/TR/html-design-principles/#dom-consistency

data-* attributes are required to be in lowercase (in the ASCII range).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94331</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-10-04 20:46:13 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #3)
&gt; I think it&apos;s a bad idea to allow uppercase names in XHTML. It violates
&gt; http://www.w3.org/TR/html-design-principles/#dom-consistency
&gt; 
&gt; data-* attributes are required to be in lowercase (in the ASCII range).

I don&apos;t have super-strong opinions here. If I remember correctly, I was just trying not to impose too many restrictions. Since SVG already has mixed-case names, and custom elements allow extending SVGElement, it seems only fair to let those extending SVG to use mixed case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94332</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-10-04 20:58:25 +0000</bug_when>
    <thetext>SVG isn&apos;t going to introduce any new names with uppercase, since doing so would mean updating the case fixup tables in the HTML parser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94335</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-10-04 21:09:23 +0000</bug_when>
    <thetext>(In reply to Simon Pieters from comment #5)
&gt; SVG isn&apos;t going to introduce any new names with uppercase, since doing so
&gt; would mean updating the case fixup tables in the HTML parser.

Okay, so basically we should presume that all mixed-case names are mistakes of the past and we just force lowercase for all new elements? I am ok with that. Anne, Blake, how does this sound to you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94348</commentid>
    <comment_count>7</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-10-04 22:43:24 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcomponents/rev/4817a2c68123
https://dvcs.w3.org/hg/webcomponents/rev/a6acb7dcfda5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94366</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-10-05 11:52:43 +0000</bug_when>
    <thetext>ASCII lowercase, yes. Looks good.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>