[Bug 10821] i18n comment 17 : setting input and textarea element direction through browser UI should set the dir attribute and trigger oninput event

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10821

Ehsan Akhgari [:ehsan] <ehsan@mozilla.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ehsan@mozilla.com

--- Comment #2 from Ehsan Akhgari [:ehsan] <ehsan@mozilla.com> 2010-10-08 02:32:47 UTC ---
(In reply to comment #1)
> Regarding the first issue, setting the "dir" attribute:
> 
> - Do any implementations do this?

Not yet, to the best of my knowledge.

> - If not:
>     - What problem does doing this solve?

See below please.

>     -  What do implementations currently do instead?

Gecko sets the dir attribute on an internal DIV element which it uses to render
the input/textarea contents.  This DIV element is not exposed to the web page
DOM, and is entirely inaccessible to the page.

One problem, for example, is that if the page uses the dir attribute to switch
the input/textarea direction, this will override what the page specify, and
there will be no way for the web page to toggle the direction once the user
uses the browser UI provided mechanism for switching text direction.

Another problem is that without the dir attribute set on the input/textarea
element, the page does not have any way to determine the real direction of the
element, and any script which relies on this knowledge will malfunction.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You reported the bug.

Received on Friday, 8 October 2010 02:32:48 UTC