Bug 58281

Summary: Order of 'max' and 'value' attributes of <input type=range> matters in XHTML (and one order is broken)
Product: WebKit Reporter: Ian 'Hixie' Hickson <ian>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, dglazkov, keishi, tkent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

Ian 'Hixie' Hickson
Reported 2011-04-11 15:52:21 PDT
In XHTML, these result in different behaviour: <input type="range" max="100" value="10"/> <input type="range" value="10" max="100"/> There are two problems here: 1. The order of setting these attributes shouldn'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.
Attachments
Kent Tamura
Comment 1 2011-06-16 17:34:48 PDT
I think this was fixed by http://trac.webkit.org/changeset/89006 However, I don't understand why this happened only in XHTML :-)
Note You need to log in before you can comment on or make changes to this bug.