[Webkit-unassigned] [Bug 200226] New: Wrong keyboard for "inputmode=numeric"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 29 08:39:28 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=200226

            Bug ID: 200226
           Summary: Wrong keyboard for "inputmode=numeric"
           Product: WebKit
           Version: Safari 12
          Hardware: iPhone / iPad
                OS: iOS 12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: brkemper at mac.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

The "numeric" and "decimal" values of `inputmode` are both supposed to trigger number keyboards, with "decimal" being different only in that it should include the decimal point. Both should be able to enter any whole number, while "decimal" should also be able to enter decimal numbers, via the addition of a decimal point key on the keyboard.

But in iOS Safari, "numeric" creates a keyboard with more keys instead of fewer. It can type decimals because it also includes a decimal point (period) key. But it strangely can also type all sorts of punctuation.

So as an author, if I have a field that I want people to only type whole numbers into, I want to be able to specify "inputmode=numeric" and get a keyboard that has numbers, minus sign, and nothing else, in order to discourage expectations that other keys are acceptable. But in iOS Safari, I get something else completely. This bug then leads me to use "inputmode=decimal" when I don't really want decimal, because at least it is a number keypad and doesn't actually have a bunch of irrelevant punctuation keys (this is assuming I don't care about the negative key missing from decimal, which is another bug). So, what I'm saying is that this bug is harming the Web by causing authors to put the wrong thing into their HTML. And it is likely to harm iOS worse than Android, because authors will detect the platform and include "decimal" for iOS and "numeric" for Android, in order to get the closest result to what they really want.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190729/f2089dc8/attachment-0001.html>


More information about the webkit-unassigned mailing list