[Bug 22129] Allowing @pattern attribute on <input type=number>

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22129

Travis Leithead [MSFT] <travil@microsoft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |travil@microsoft.com
         Resolution|---                         |WONTFIX

--- Comment #10 from Travis Leithead [MSFT] <travil@microsoft.com> ---
HTML5.1 Bugzilla Bug Triage: Incubation needed

A lot of the spec performs input validation for type=number using the rules for
being valid floating-point numbers. Thus, to allow currency values as
underlying values, they'd have to conform to the rules for floating-point
numbers--which is why 1.23,45 does not validate. Pattern is intended for text
entry controls, of which number is not.

To make this scenario better for i18n, user agents, could allow currency input
into type=number, and convert between the user's value (in the locale) to a
floating-point value--how what signal will the use to know this? lang
attribute? As noted, lang does not provide enough context to know the intent of
the value.

Seems like the best path forward is an input type=currency, which would act
more like a text input, supporting pattern, etc., then like a number control.
User agents could take the semantic hint that currency input is expected and
show appropriate keyboards/UI, but wouldn't offer a spinner control or
min/max/step semantics.

This bug constitutes a request for a new feature of HTML. The current
guidelines [1], rather than track such requests as bugs or issues, please
create a proposal outlining the desired behavior, or at least a sketch of what
is wanted (much of which is probably contained in this bug), and start the
discussion/proposal in the WICG [2]. As your idea gains interest and momentum,
it may be brought back into HTML through the Intent to Migrate process [3].
[1] https://github.com/w3c/html#contributing-to-this-repository
[2] https://www.w3.org/community/wicg/
[3] https://wicg.github.io/admin/intent-to-migrate.html

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 25 April 2016 22:36:51 UTC