Re: [whatwg] Input and spell check/keyboard settings

- jonnyr@

18.06.2015, 09:59, "Jonny Rein Eriksen" <jonnyr@opera.com>:

> A possible solution:
>
> If we had support for setting a standardized context attribute on the
> input element, the browser could keep a small database with configured
> settings per context.

There is an attribute called "lang" that probably has what you want, if you set up the spellcheck etc to read it.

The HTML code in a web page doesn't know what the context is, until you script up something to make that happen. At which point, you may as well change the lang attribute as anything else.

Note that some systems auto-detect language being entered - for example both yandex.translate and MacOS do this for me, and I suspect that the future tends that way rather than trying to guess whether I should write to you in english or norwegian…

har det bra

Chaals

--
Charles McCathie Nevile - web standards - CTO Office, Yandex
chaals@yandex-team.ru - - - Find more at http://yandex.com

Received on Thursday, 18 June 2015 08:58:40 UTC