<?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>16351</bug_id>
          
          <creation_ts>2012-03-13 23:33:00 +0000</creation_ts>
          <short_desc>For ease of interoperability with CSS, suggest adding an authoring recommendation that id attribute values consist of the characters A-Z, a-z, 0-9, _, - and not begin with a dash.</short_desc>
          <delta_ts>2012-08-29 05:46:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-id-attribute</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65488</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-03-13 23:33:00 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
Multipage: http://www.whatwg.org/C#the-id-attribute
Complete: http://www.whatwg.org/c#the-id-attribute

Comment:
For ease of interoperability with CSS, suggest adding an authoring
recommendation that id attribute values consist of the characters A-Z, a-z,
0-9, _, - and not begin with a dash.

Posted from: 99.113.33.155
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 Iceweasel/10.0.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65506</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-03-14 07:49:58 +0000</bug_when>
    <thetext>Same with classes, I presume? What about data-* attribute names?

Note that the rule is:

&quot;In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, two hyphens, or a hyphen followed by a digit.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70649</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:14:39 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18090 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72899</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-28 18:55:11 +0000</bug_when>
    <thetext>You can use whatever characters you want in CSS. e.g.:

&lt;style&gt;
 \# { color: green } 
&lt;/style&gt;
&lt;p id=&quot;#&quot;&gt;aha!&lt;/p&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72962</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-08-29 05:46:19 +0000</bug_when>
    <thetext>(The selector should be #\#.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>