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

[Bug 12912] Close status code is an unsigned short

From: <bugzilla@jessica.w3.org>
Date: Tue, 21 Jun 2011 22:40:35 +0000
To: public-webapps@w3.org
Message-Id: <E1QZ9cZ-00034d-Tr@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12912

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |cam@mcc.id.au, ian@hixie.ch
         Resolution|                            |NEEDSINFO

--- Comment #1 from Ian 'Hixie' Hickson <ian@hixie.ch> 2011-06-21 22:40:35 UTC ---
Why should 65535 throw INVALID_ACCESS_ERR but 66535 send the code 1000? I guess
one could ask the same of why 4294967295 should throw INVALID_ACCESS_ERR when
4294968295 sends the code 1000... Maybe the solution is to add [Clamp] to the
interface.

I've changed it to 'unsigned short' with [Clamp].

cc'ing heycam for sanity check.

(Note that this makes the CloseEvent interface less useful, since anyone
reusing it now is limited to 2**16 codes instead of 2**32, but I guess that's
not a big deal.)

-- 
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, 21 June 2011 22:40:37 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT