W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2016

Re: [whatwg] proposal for new <input> inputmode: digits

From: Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Date: Tue, 26 Jul 2016 00:35:27 +0200
To: Eitan Adler <lists@eitanadler.com>
Message-ID: <87twfdpcr4.fsf@lustschutzbunker.localdomain>
Cc: "whatwg@whatwg.org" <whatwg@whatwg.org>
Eitan Adler <lists@eitanadler.com> writes:

> On 25 July 2016 at 14:59, Nils Dagsson Moskopp <
> nils@dieweltistgarnichtso.net> wrote:
>
>> Eitan Adler <lists@eitanadler.com> writes:
>> > See also the remainder of my email.
>>
>> I do not understand. What do you mean?
>>
>
> Please re-read the original email of the thread.
>
> I am arguing that *neither*
> <input type="text" pattern="\d*" />
> nor
> <input type="number" .... />
> are correct.
>
> While I could understand a keyboard which only allows "allowed tokens" this
> is entirely infeasible given modern regular expressions are Turing
> complete. In fact, they are infeasible even as DFAs considering valid
> values depend on future input.

I massively doubt that a “regular” expression could be turing complete.

> There is room for a "digits only" inputmode which is *already* a mode
> supported by some mobile browsers. I'd only like to make this explicit and
> non-magical.

Could you qualify the attribute “magical” ?

-- 
Nils Dagsson Moskopp // erlehmann
<http://dieweltistgarnichtso.net>
Received on Monday, 25 July 2016 22:36:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:38 UTC