W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2010

[whatwg] HTMLInputElement::valueAsNumber and NaN Infinity

From: TAMURA, Kent <tkent@chromium.org>
Date: Mon, 25 Jan 2010 19:13:01 +0900
Message-ID: <b7b4ecf81001250213k3f3c37e7u614c63e94efa9ec@mail.gmail.com>


On Mon, Jan 25, 2010 at 19:10, Philip Taylor  
<excors+whatwg at gmail.com<excors%2Bwhatwg at gmail.com>
> wrote:

> On Mon, Jan 25, 2010 at 9:55 AM, TAMURA, Kent <tkent at chromium.org> wrote:
> > It seems the current spec doesn't define behavior in a case of setting
> NaN
> > or Infinitiy to HTMLInputElement::valueAsNumber.

> http://whatwg.org/html5#float-nan : "Except where otherwise specified,
> if an IDL attribute that is a floating point number type (float) is
> assigned an Infinity or Not-a-Number (NaN) value, a NOT_SUPPORTED_ERR
> exception must be raised."

> This case seems to apply for valueAsNumber.


Oh, that's right. I overlooked it.
Thanks!

-- 
TAMURA Kent
Software Engineer, Google



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100125/a9b0f907/attachment.htm>
Received on Monday, 25 January 2010 02:13:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:20 UTC