<?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>22159</bug_id>
          
          <creation_ts>2013-05-24 13:23:05 +0000</creation_ts>
          <short_desc>The order of the supported property names of a form is not clear</short_desc>
          <delta_ts>2013-06-19 01:42:55 +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>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-form-element</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>bzbarsky</cc>
    
    <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>88200</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-05-24 13:23:05 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html
Multipage: http://www.whatwg.org/C#the-form-element
Complete: http://www.whatwg.org/c#the-form-element
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
The order of the supported property names of a form is not clear

Posted from: 98.110.194.206 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20130521 Firefox/24.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88201</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-05-24 13:27:11 +0000</bug_when>
    <thetext>The spec says:

&gt; in tree order, with id attributes preceding name attributes preceding entries
&gt; from the past names map, with multiple entries in the past names map for the
&gt; same element being ordered chronologically by when they were added to the map

I _think_ what it means is that the set of elements involved (listed elements, &lt;img&gt; descendants, and values, not keys, from the past names map) should be sorted by tree order, and that then for each element you put in its id, if any, then its name, if any, then any past names map keys that had the element as a value, in chronological order.

But I&apos;m not 100% sure about that, and I think it would be good to make it clearer what the order is.  It might involve more than a single sentence to do that, but I think it would be worth the clarity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89132</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-11 22:25:50 +0000</bug_when>
    <thetext>That&apos;s what I intended, yes. What other interpretation is there?

The current text (changed for another bug) is:

&quot;The values must be listed in tree order, with id attributes preceding name attributes preceding entries from the past names map when the same element has more than one, and with multiple entries in the past names map for the same element being ordered chronologically by when they were added to the map, and in all cases ignoring later duplicates.&quot;

Is that still ambiguous?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89141</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-06-12 02:16:23 +0000</bug_when>
    <thetext>I think the problem I&apos;m having is that the values themselves do not have tree order.  Elements have tree order.  And a single value in the list can correspond to multiple elements, while a single element can correspond to multiple values.  The latter case is handled ok, but the former case is a bit confusing.

It might be worth spelling out more clearly how to come up with this liss, since at least one implementor trying to implement this section has already gotten it wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89510</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-18 22:15:18 +0000</bug_when>
    <thetext>Alright. Maximum verbosity: ON! :-)

This is mostly new text, so hopefully it&apos;s still accurate. Please don&apos;t hesitate to file new bugs if you see a problem with it. Hopefully, it&apos;s at least unambiguous and precise now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89512</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-06-18 22:15:26 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7986.
Check-in comment: Be even more explicit about the supported property names of a &lt;form&gt;.
http://html5.org/tools/web-apps-tracker?from=7985&amp;to=7986</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89536</commentid>
    <comment_count>6</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-06-19 01:42:55 +0000</bug_when>
    <thetext>Thank you.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>