[Bug 16160] dir=auto does not work for user-visible attribute values

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16160

--- Comment #6 from Aharon Lanin <aharon.lists.lanin@gmail.com> 2012-05-10 20:32:16 UTC ---
(In reply to comment #5)
> If you need to set the directionality of an attribute, the established pattern
> is to use an element specifically for that attribute, as in:
> 
>    <span dir=rtl title="CBA"><span dir=ltr>abc</span></span>

This workaround does not work for the placeholder attribute. It needs to be on
the input, and the directionality needed for the input may not be the
directionality needed for the placeholder.

> 
> Are there specific use cases on concrete Web sites today for which this is
> insufficient?

Yes, the Firefox options page where you set the home page URL. (It is done in
HTML.) The field needs to be LTR. In an RTL installation, the placeholder needs
to be RTL. Currently, it gets displayed in LTR like the input, and comes out
garbled. I will try to attach a screenshot.

Similar case in Google Accounts sign-up page
(https://accounts.google.com/accounts/SignUp?hl=iw). The Day and Tear fields
need to be LTR, but the placeholders are RTL. Luckily, the placeholders there
don't have any LTR words in them, so they don't actually come out garbled like
the Firefox options page, but you get the idea.

Please note that these examples are for the placeholder problem. I do not yet
have cases of problems due to dir=auto, but with it only starting to become
available in browsers, no one is using it yet.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 10 May 2012 20:32:20 UTC