W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2011

[Bug 11936] Progress element max and value IDL attributes should be float, not double

From: <bugzilla@jessica.w3.org>
Date: Tue, 01 Feb 2011 14:06:32 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PkGsK-0003DK-Rv@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11936

--- Comment #1 from Mounir Lamouri <mounir.lamouri@gmail.com> 2011-02-01 14:06:32 UTC ---
data:text/html,<progress
value="0.42857142857142855"></progress><script>alert(document.getElementsByTagName('progress')[0].value
== '0.42857142857142855')</script>

Opera: true
Webkit: true
Specs: false

Maybe I missed something in the specs but I think 0.42857142857142855 isn't a
valid single-precision floating point number so .value can't return
0.42857142857142855.
I guess Opera and Webkit allows double-precision float for attributes (Gecko
doesn't).

So, should we change the rules for parsing a floating point number or move back
those IDL attributes to the float type?

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 1 February 2011 14:06:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 1 February 2011 14:06:34 GMT