W3C home > Mailing lists > Public > public-i18n-bidi@w3.org > July to September 2010

events on user setting text direction

From: Aharon (Vladimir) Lanin <aharon@google.com>
Date: Mon, 27 Sep 2010 21:37:54 +0200
Message-ID: <AANLkTinZDP8yyca1CMMxoLVRrnGqQRtvN1zy74fb4+Wy@mail.gmail.com>
To: public-i18n-bidi@w3.org
At the face-to-face, we said:

> (Section 3.8)
>
> 28. There is no need to trigger the oninput event
> when the user explicitly sets the direction of an
> <input> or <textarea> element since the dir
> attribute change that this causes should generate
> the DOM2 DOMAttrModified event

It turns out that this is not exactly true. WebKit currently does not
support DOMAttrModified and it is unclear if they ever will. Firefox,
apparently, supports it, but only triggers it when an attribute is changed
by script, not by the browser UI (as would be the case for setting text
direction). And finally, DOM3 deprecates all the mutation events,
including DOMAttrModified. They are supposedly working on an alternative,
but we have no idea whether it will actually come to be or if it will apply
to our case. Thus, I am leaving the original suggestion to trigger the
oninput event when the user explicitly sets the direction.

Aharon
Received on Monday, 27 September 2010 19:38:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 September 2010 19:38:47 GMT