W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2015

[Bug 28875] [EnforceRange] accepts an odd set of input values

From: <bugzilla@jessica.w3.org>
Date: Wed, 01 Jul 2015 22:25:16 +0000
To: public-script-coord@w3.org
Message-ID: <bug-28875-3890-H1wmPc6xRd@http.www.w3.org/Bugs/Public/>

Jonas Sicking <jonas@sicking.cc> changed:

           What    |Removed                     |Added
                 CC|                            |jonas@sicking.cc

--- Comment #3 from Jonas Sicking <jonas@sicking.cc> ---
Javascript has a lot of quirks. I think trying to work around those quirks in a
random set of DOM APIs is only going to make the platform even more quirky.

What's special about [EnforceRange] here? It seems like you'd see the same set
of quirky behavior for any API that accepts a number. Consider for example

x = [1, 2];
x.length = 0; // Removes all items for x
x.length = {}; // Throws and leaves x unaffected
x.length = []; // Removes all items for x
x.length = ""; // Removes all items for x

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 1 July 2015 22:25:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:24 UTC