W3C home > Mailing lists > Public > public-html@w3.org > June 2009

Re: parsing floating point values - user input for <input type="number"> in different locales

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Mon, 22 Jun 2009 02:13:00 -0400
To: "Simon Pieters" <simonp@opera.com>, public-html@w3.org
Message-ID: <op.uvwwvxxh1ejg13@sandra-svwliu01>
On Mon, 22 Jun 2009 02:10:33 -0400, Simon Pieters <simonp@opera.com> wrote:

> On Fri, 19 Jun 2009 21:45:15 +0200, Michael A. Puls II  
> <shadow2531@gmail.com> wrote:
>
>>> The browser can use locale-specific conventions in the user interface.
>>
>> Thanks.
>>
>> So, if the user locale uses "," and the users enters "1,5" in the  
>> field, the UA would treat that as 1.5 hehind the scenes?
>
> Yeah, it could do that.

O.K.

>> Is there anything in the spec that says this or is this just supposed  
>> to be obviously implied?
>
> I didn't find anything explicitly in the section bout type=number, but  
> generally the spec does not have any UI requirements.

O.K.

>> What about markup?
>>
>> Will <input type="number" min="0,5" max="2,5" value="1,1" step="0,1">  
>> work if the locale is correct?
>
> No, you have to use "." in the markup.

O.K. Just wanted to make sure.

Thanks

-- 
Michael
Received on Monday, 22 June 2009 06:13:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:38 GMT