W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2011

[Bug 11887] Remove useless input.valueAsNumber. Pretty much the same functionality can be achieved using parseFloat or parseInt

From: <bugzilla@jessica.w3.org>
Date: Sun, 30 Jan 2011 01:45:24 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PjMM0-0003LE-Gz@jessica.w3.org>

Adrian Bateman [MSFT] <adrianba@microsoft.com> changed:

           What    |Removed                     |Added
                 CC|                            |adrianba@microsoft.com

--- Comment #2 from Adrian Bateman [MSFT] <adrianba@microsoft.com> 2011-01-30 01:45:23 UTC ---
Some input type likes type=range store the value internally as a number.
Converting to a string for .value and then back to a number in script is a
waste. valueAsNumber is useful to avoid this.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Sunday, 30 January 2011 01:45:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:04 UTC