<?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>20660</bug_id>
          
          <creation_ts>2013-01-14 12:50:09 +0000</creation_ts>
          <short_desc>DOMTokenList list of tokens isn&apos;t properly initialised</short_desc>
          <delta_ts>2015-11-11 14:42:52 +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>DOM</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/#reflecting-content-attributes-in-idl-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="Anne">annevk</assigned_to>
          <cc>crimsteam</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81336</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-01-14 12:50:09 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#reflecting-content-attributes-in-idl-attributes
Complete: http://www.whatwg.org/c#reflecting-content-attributes-in-idl-attributes

Comment:
DOMTokenList example conflicts with current DOM Standard&apos;s definition

Posted from: 121.102.72.108
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83146</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2013-02-14 16:03:47 +0000</bug_when>
    <thetext>How so?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85901</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-10 22:07:59 +0000</bug_when>
    <thetext>DOMTokenList apparently changed from mutating an underlying string to directly mutating an attribute. However, in doing this, the definition was broken — the list of tokens is no longer properly initialised.

I&apos;ve updated the HTML spec to use DOMTokenList as currently specified (which is a normative change, it&apos;s not just the example that was wrong). Would be nice if you&apos;d file bugs on the HTML spec when you make API changes like this. Would be even nicer not to make API changes like this. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85902</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-04-10 22:09:11 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7801.
Check-in comment: Update integration with DOM for DOMTokenList and DOMSettableTokenList
http://html5.org/tools/web-apps-tracker?from=7800&amp;to=7801</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85930</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-04-11 05:37:59 +0000</bug_when>
    <thetext>The API changed per bug 20104 comment 4. The interface changed out of necessity, but my plan was to have the API change land in browsers first before bugging HTML about it.

Why was this assigned to DOM?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86014</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-12 06:23:56 +0000</bug_when>
    <thetext>See comment 2 paragraph 1 — the DOM spec doesn&apos;t initialise the list of tokens properly. (e.g. if you get .relList on a &lt;a rel=&quot;a b&quot;&gt; element, it will act as if the list is empty.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87950</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-05-21 03:37:17 +0000</bug_when>
    <thetext>The idea is that HTML initializes the set. See the text around http://dom.spec.whatwg.org/#concept-class how the DOM does this for the class attribute. I&apos;m happy to take suggestions for alternate solutions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89025</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-10 21:37:51 +0000</bug_when>
    <thetext>It&apos;s going to be the same for every attribute, no? Since DOMTokenList has an attribute associated with it, why not just factor out all the stuff that&apos;s going to be the same for every attribute?

I don&apos;t understand what&apos;s special about, say, &quot;rel&quot; vs, say, &quot;class&quot;, that should require that we have all the same algorithms defined again for each one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100502</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-13 11:36:12 +0000</bug_when>
    <thetext>*** Bug 23915 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124173</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-11-11 14:42:52 +0000</bug_when>
    <thetext>https://github.com/whatwg/dom/commit/ff812344b45d6e256c5479f533897eca260d04b4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>