<?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>13917</bug_id>
          
          <creation_ts>2011-08-26 12:36:38 +0000</creation_ts>
          <short_desc>[create an element for a token] Should use getAttribute/setAttribute or define order of attributes manually.</short_desc>
          <delta_ts>2011-10-24 18:15:43 +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>HTML5 spec</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/#creating-and-inserting-elements</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>bzbarsky</cc>
    
    <cc>hsivonen</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</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>55852</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-26 12:36:38 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html
Multipage: http://www.whatwg.org/C#creating-and-inserting-elements
Complete: http://www.whatwg.org/c#creating-and-inserting-elements

Comment:
[create an element for a token] Should use getAttribute/setAttribute or define
order of attributes manually.

Posted from: 91.181.110.19 by ms2ger@gmail.com
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>55869</commentid>
    <comment_count>1</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-08-26 14:38:28 +0000</bug_when>
    <thetext>When an element is being created from markup the attributes are added all at once.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55873</commentid>
    <comment_count>2</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-08-26 14:59:04 +0000</bug_when>
    <thetext>Yes, but in what order? The spec needs to define the order of the attributes in element.attributes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55877</commentid>
    <comment_count>3</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2011-08-26 15:22:05 +0000</bug_when>
    <thetext>Ah, indeed.  Agreed, then.  (And obviously it should be source-order.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56101</commentid>
    <comment_count>4</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2011-08-31 12:56:52 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (And obviously it should be source-order.)

&quot;Obviously&quot;? On the Web?

See http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1125 in Firefox or IE.

It&apos;s not clear to me that requiring a particular order is necessary or has positive effects that outweigh negative effects.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58145</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-12 19:37:00 +0000</bug_when>
    <thetext>Hm, yeah. Having the order exposed anywhere is unfortunate, but I guess it is exposed in the DOM since you can enumerate them... Maybe the enumeration should have a fixed order (alphabetical?) or some such? Seems bad to make the parser have to track order, and it seems bad that UAs would have to keep track of the order (since for some elements, UAs might want to store certain attribute values in custom ways rather than keeping them in an ordered map with all the other attributes).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58150</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-10-12 20:17:35 +0000</bug_when>
    <thetext>Order is exposed in the DOM and in serialization. Alphabetical order is not compatible with anyone, but then I do not really care strongly here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58769</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-24 18:15:43 +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: Rejected
Change Description: no spec change
Rationale: I think we should fix this at the points where it can be observed, if at all, not at the points where the attributes are added. In principle, attributes are unordered, and it&apos;s only an artefact of the APIs that let you read the attributes that let you observe an order at all.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>