W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

[Bug 11749] Do we really want values to wrap instead of clamping?

From: <bugzilla@jessica.w3.org>
Date: Tue, 24 May 2011 22:26:16 +0000
To: public-script-coord@w3.org
Message-Id: <E1QP03M-0006el-5K@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11749

Cameron McCormack <cam@mcc.id.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #2 from Cameron McCormack <cam@mcc.id.au> 2011-05-24 22:26:15 UTC ---
I don't know about compatibility with content.  I'm inclined to leave it as is,
for the reason Boris states, and that the wrapping is what the ES5 spec uses
when builtin functions need to convert a value to an integer.

FWIW,

data:text/html,<script>a=document.createElement("input");a.size=4294967297;alert(a.size)</script>

alerts "1" (4294967297 being 2^32+1) in Firefox, Safari, Chrome and IE.  In
Opera it alerts "-2147483648"

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 24 May 2011 22:26:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC