W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2011

Re: Added 'locale' to Text, Keyboard, and Composition Events [ISSUE-119]

From: Doug Schepers <schepers@w3.org>
Date: Wed, 05 Jan 2011 21:04:05 -0500
Message-ID: <4D252315.5020508@w3.org>
To: "Aharon (Vladimir) Lanin" <aharon@google.com>
CC: "www-dom@w3.org" <www-dom@w3.org>
Hi, Aharon-

Aharon (Vladimir) Lanin wrote (on 12/26/10 2:19 AM):
> Great, thank you!
>
> One tweak, though. The description for locale in keyboard events is
> identical to the one in text events, i.e.:
>
> "The locale attribute contains a BCP-47 tag [BCP-47] indicating the
> locale for which the origin of the event (whether keyboard, IME,
> handwriting recognition software, or other input mode) is configured,
> e.g. "en-US". May be the empty string when inapplicable or unknown, e.g.
> for pasted text, or when this information is not exposed by the
> underlying platform."
>
> Some of this is inappropriate to keyboard events, though (I think):
>
>     * "origin of the event (whether keyboard, IME, handwriting
>       recognition software, or other input mode)": shouldn't this be
>       just "keyboard"?
>     * "when inapplicable or unknown, e.g. for pasted text": keyboard
>       events can not be generated by pasting text, can they? This phrase
>       should probably be just omitted, yielding something like: "May be
>       the empty string when unknown, e.g. when this information is not
>       exposed by the underlying platform."
>
> I am less familiar with composition events, but some of these remarks
> may apply there as well.


Good catch... I was making several changes, and got sloppy with the 
copy-paste. (Unfortunately, there is no key event attribute that catches 
that. ^_^)

I have updated the spec, and I hope it's more to your liking.

Regards-
-Doug Schepers
W3C Team Contact, SVG, WebApps, and Web Events WGs
Received on Thursday, 6 January 2011 02:04:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT