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

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