Re: inputmode attribute

On Mon, 03 Jun 2013 11:25:32 +0200, Takayoshi Kochi (河内 隆仁)  
<kochi@google.com> wrote:

> Can we discuss what the attribute should be here in this list?

I would probably expect "latin-digit" or something like that. If, say, one  
is typing a credit card number neither input <type=number> nor <input  
type=tel> is appropriate, and it's a common use case where the user needs  
to toggle manually to avoid "wide" Japanese numbers and such. (A "number"  
type input is not appropriate because a credit card number might start  
with a 0, which would be removed when sending a number value).

It may also be a case that a developer wants to do things like

Phone number: <div contentEditable inputmode="tel"><span class="prefix"  
contentEditable=false>+47</span> | </div>

If we only offer <input type=tel> we remove certain possibilities for  
formatting parts of the number.

-Hallvord

Received on Tuesday, 4 June 2013 13:56:02 UTC