<?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>13912</bug_id>
          
          <creation_ts>2011-08-26 00:36:29 +0000</creation_ts>
          <short_desc>What order are attributes in?</short_desc>
          <delta_ts>2014-02-13 11:39:17 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>17871</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>shadow2531</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>55835</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-26 00:36:29 +0000</bug_when>
    <thetext>This doesn&apos;t define the order of the array:
&quot;The attributes attribute must return a read only array of the context object&apos;s associated attributes.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55853</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-08-26 12:39:47 +0000</bug_when>
    <thetext>The order in which they were added to the element. In particular, setAttribute/setAttributeNS say &quot;*Append* this attribute to the context object&apos;s attributes.&quot;

I&apos;ve tried to make this cleared by using &quot;list of attributes&quot; instead of &quot;collection of attributes&quot;: &lt;http://dvcs.w3.org/hg/domcore/rev/f1ac828a0830&gt;.

I&apos;ve filed bug 13917 to fix the &quot;create an element for a token&quot; definition in HTML, which doesn&apos;t define in what the order the attributes are added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96801</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-25 18:53:38 +0000</bug_when>
    <thetext>Bug 13917 was WONTFIXed. Attributes in markup are conceptually unordered. If the API exposes an order, it&apos;s the API that should define the order, IMHO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96826</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-11-26 13:05:59 +0000</bug_when>
    <thetext>So if we have multiple disparate APIs they can all do their own thing? 

I think either we have a consistent order, we have a random order, or we have it implementation-defined and hope nobody starts depending on anything. I vastly prefer consistent order over the alternatives.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100503</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-13 11:38:09 +0000</bug_when>
    <thetext>

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

    </bug>

</bugzilla>