<?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>13610</bug_id>
          
          <creation_ts>2011-08-03 15:34:39 +0000</creation_ts>
          <short_desc>[DOM Core] Remove HTMLElement.id</short_desc>
          <delta_ts>2011-09-30 20:01:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#global-attributes</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ayg</cc>
    
    <cc>cam</cc>
    
    <cc>hsivonen</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>52184</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-03 15:34:39 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
Multipage: http://www.whatwg.org/C#global-attributes
Complete: http://www.whatwg.org/c#global-attributes

Comment:
[DOM Core] Remove HTMLElement.{id,className,classList}

Posted from: 91.181.50.33
User agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.35 (KHTML, like Gecko) Chrome/13.0.761.0 Safari/534.35</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53469</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:14:10 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54923</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-14 06:23:06 +0000</bug_when>
    <thetext>That&apos;s gonna be interesting, since I presume the content attributes remain in the HTML spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54945</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-08-14 08:31:49 +0000</bug_when>
    <thetext>The idea is that DOM defines the behavior, including of the content attributes, but does not actually define their semantics (if any) and whether they are conforming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55006</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-14 23:29:57 +0000</bug_when>
    <thetext>Does that mean that the definition of an IDL attribute reflecting a DOM attribute has to be moved from HTML to DOM for the sake of three attributes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55017</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-15 03:58:54 +0000</bug_when>
    <thetext>I&apos;m not really convinced this is a good idea. What problem is it solving?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55055</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-08-15 08:10:46 +0000</bug_when>
    <thetext>It simplifies the platform, primarily. And gives some forward compatibility. Implementors seem interested in doing it, but maybe we should not update HTML until it is actually adopted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55128</commentid>
    <comment_count>7</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-15 18:53:38 +0000</bug_when>
    <thetext>Hopefully it doesn&apos;t give us forward compatibility, because hopefully any new features we&apos;re going to add will be in the HTML namespace.  The simplification seems a bit marginal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55130</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-08-15 19:06:48 +0000</bug_when>
    <thetext>Not having to coordinate id/className/classList among three specifications and not having to check the namespace when doing ID or class matching is a quite significant simplification. Enough so that implementors have wanted to make it for ages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55645</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-23 00:15:13 +0000</bug_when>
    <thetext>But we&apos;re still going to have to do pre-namespace stuff here unless SVG drops its animation of className, no? The simplification really seems minimal to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55647</commentid>
    <comment_count>10</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-08-23 00:34:34 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; But we&apos;re still going to have to do pre-namespace stuff here unless SVG drops
&gt; its animation of className, no? The simplification really seems minimal to me.

The className conflict is a good point.  Not sure how we might resolve that yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57364</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-26 19:56:25 +0000</bug_when>
    <thetext>Let&apos;s split the ID and class issues up here, and use this bug just for the ID side. Once the class complications are resolved, if it still requires changes to the HTML spec, file a new bug.

As far as ID goes, the DOM Core spec currently has the following issues:

 - it doesn&apos;t allow for multiple IDs per element. While I&apos;m sure we all think that allowing that is problematic, and we&apos;re working to make it impossible, the truth of the matter is that we have so far had at least 4 ways to set IDs (id=&quot;&quot;, xml:id=&quot;&quot;, IDness in DTD, and the old DOM APIs), and I see no reason to believe that we&apos;ll prevent people from making up new ones in the future. So we should at least admit the possibility.

 - no special handling is defined for when the id=&quot;&quot; attribute&apos;s value is the empty string.

Once these are resolved I can remove the relevant sentences from the HTML spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57395</commentid>
    <comment_count>12</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-09-27 07:36:25 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; I see no reason to
&gt; believe that we&apos;ll prevent people from making up new ones in the future. So we
&gt; should at least admit the possibility.

An alternative is to make attempts to introduce more IDs in the future so full of FAIL that it&apos;s obvious that people shouldn&apos;t try. Maybe even say in the spec that spec writers MUST NOT attempt to introduce new IDs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57510</commentid>
    <comment_count>13</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-09-29 14:55:01 +0000</bug_when>
    <thetext>By making IDs a concept of the DOM multiple identifiers are out of the window. I added a note to that effect. I also clarified when an element has an ID, including that it does not have one when there is an id attribute whose value is the empty string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57568</commentid>
    <comment_count>14</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-09-30 17:47:31 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Ok, sounds good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57569</commentid>
    <comment_count>15</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-09-30 17:48:00 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6605.
Check-in comment: move .id and ID processing to DOM Core.
http://html5.org/tools/web-apps-tracker?from=6604&amp;to=6605</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>