<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>58281</bug_id>
          
          <creation_ts>2011-04-11 15:52:21 -0700</creation_ts>
          <short_desc>Order of &apos;max&apos; and &apos;value&apos; attributes of &lt;input type=range&gt; matters in XHTML (and one order is broken)</short_desc>
          <delta_ts>2011-06-16 17:34:48 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>dglazkov</cc>
    
    <cc>keishi</cc>
    
    <cc>tkent</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>383618</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-04-11 15:52:21 -0700</bug_when>
    <thetext>In XHTML, these result in different behaviour:
    &lt;input type=&quot;range&quot; max=&quot;100&quot; value=&quot;10&quot;/&gt;
    &lt;input type=&quot;range&quot; value=&quot;10&quot; max=&quot;100&quot;/&gt;

There are two problems here:

 1. The order of setting these attributes shouldn&apos;t matter. Even if they are set from script one after the other, the algorithms in the spec should ensure the result is the same.

 2. The attributes of an element created by a parser should all be set simultaneously when the element is created, not one at a time. So there should never be a situation in which you can tell in which order the attributes were set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>422349</commentid>
    <comment_count>1</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2011-06-16 17:34:48 -0700</bug_when>
    <thetext>I think this was fixed by http://trac.webkit.org/changeset/89006

However, I don&apos;t understand why this happened only in XHTML :-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>