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

[whatwg] Input color state: type mismatch

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 2 Apr 2010 21:37:57 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1004022137100.18493@ps20323.dreamhostps.com>
On Sat, 3 Apr 2010, TAMURA, Kent wrote:
>
> I found type=number also had no typeMismatch. If a user wants to type a 
> negative value, he types '-' first.  This state should make typeMismatch 
> true because '-' is not a valid floating point number.

The user agent shouldn't update the value until the input is a valid 
number. ("User agents must not allow the user to set the value to a string 
that is not a valid floating point number.")

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 2 April 2010 14:37:57 UTC

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