Intent to Ship: add InputMode attribute

130 views
Skip to first unread message

Dave Tapuska

unread,
Feb 12, 2018, 12:05:55 PM2/12/18
to blink-dev

Contact emails

dtap...@chromium.org


Spec

https://html.spec.whatwg.org/multipage/interaction.html#input-modalities%3A-the-inputmode-attribute


The spec revision was limited to values that could be implemented on common virtual keyboards on popular OS platforms. It removed the locale dependent issues that plagued inputmode in the past.


Summary

This intent has been sent in the past and this time it is different in that we've removed the locale dependent issues that plagued the last proposal of the inputmode and are supporting it on contenteditable. It functions strictly as a hint to what virtual keyboard to display.


Supporting it on contenteditable items brings tremendous value to sites that are using this as an input method as previously the keyboard was not customisable at all.


Link to “Intent to Implement” blink-dev discussion

https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/KjKEZ5Ga3k8/discussion


https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/ppKpYmZazlQ/BfLW4FY41eIJ


Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes


Demo link

http://output.jsbin.com/teselus/1



Risks

Interoperability and Compatibility


Little risk.


Edge: No signals. Bug opened.

Firefox: Implemented old specified version behind a flag. Not opposed to implementing it. Bug opened.

Safari: No signals Bug opened.

Web developers: Positive.


Ergonomics

None


Activation

Opt-in as it is a new attribute. Without the attribute it should be the same as before.


Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.


Yes it is; here is the commit.

https://github.com/w3c/web-platform-tests/commit/e765209592d4d08c3352cfcfc2eed6231da73b79


https://wpt.fyi/html/dom/reflection-misc.html


Entry on the feature dashboard

https://www.chromestatus.com/feature/6225984592281600

Daniel Bratell

unread,
Feb 12, 2018, 12:41:15 PM2/12/18
to blink-dev, Dave Tapuska
Will this be the time? (In the thread from 2015 I said that I didn't want to wait 10 more years for a standard solution and it's only been 3)

The spec is both very new and very old so there is a risk of something nobody has thought of but on the other hand people have had a long time to think about the problem.

There is a risk of content having this flag with the wrong value. So far that bad value will have been ignored, but with this shipped, those sites could break. If you have access to some database of web pages, it could be good to look at it, but Simon Pieters did an investigation in 2015 and there didn't seem to be that much content back then. Whether that content had the values right or wrong I don't know. Nobody looked at it as far as I can tell.

Anyway, I'm happy to see this. 

LGTM1

/Daniel
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHXv1w%3DfLM-OJ1ZdYW7c%2Bo%2B9r9yNgMxLm4g-DHYnRq5UVOE4qw%40mail.gmail.com.



--
/* Opera Software, Linköping, Sweden: CET (UTC+1) */

Chris Harrelson

unread,
Feb 15, 2018, 1:46:51 PM2/15/18
to Daniel Bratell, blink-dev, Dave Tapuska
LGTM2

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
/* Opera Software, Linköping, Sweden: CET (UTC+1) */

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/op.zeb3eqk7rbppqq%40cicero2.linkoping.osa.

Rick Byers

unread,
Feb 15, 2018, 4:08:50 PM2/15/18
to Chris Harrelson, Daniel Bratell, blink-dev, Dave Tapuska
Reply all
Reply to author
Forward
0 new messages