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

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 13 Jan 2011 19:55:46 +0000
To: public-script-coord@w3.org
Message-ID: <bug-11749-3890@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11749

           Summary: Do we really want values to wrap instead of clamping?
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
        AssignedTo: cam@mcc.id.au
        ReportedBy: Simetrical+w3cbug@gmail.com
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-script-coord@w3.org


The algorithm to convert ECMAScript values to various IDL types (octet, short,
etc.) specifies that they wrap if they're out of range, by saying that they're
taken mod 2^8 or 2^16 or whatever.  Is this behavior really necessary? 
Clamping to the nearest allowed value is much nicer behavior, if it's
compatible with how browsers behave.

-- 
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 Thursday, 13 January 2011 19:55:47 UTC

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