W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > March 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: Wed, 02 Mar 2011 17:41:45 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Puq3V-0004U3-51@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11887

--- Comment #10 from Adrian Bateman [MSFT] <adrianba@microsoft.com> 2011-03-02 17:41:44 UTC ---
In our prototyping we've found the valueAsNumber concept is a useful
convenience API that avoids a round-trip through a string. It's not hard to
implement and since almost every use case where valueAsNumber is valid involves
dealing with the value as a number why not keep it? It makes JavaScript code
more readable.

-- 
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 Wednesday, 2 March 2011 17:41:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 2 March 2011 17:42:34 GMT