[Bug 27475] Examples: illustrate difference between bdo and bdi

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

Lina Kemmel <lkemmel@il.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lkemmel@il.ibm.com

--- Comment #5 from Lina Kemmel <lkemmel@il.ibm.com> ---
(In reply to contributor from comment #0)
> ... 
> which code should be preferred and why: 

This strongly depends on the intended use.

> 
> &lt;p&gt;Name: &lt;bdi&gt;&lt;input id="name"&gt;&lt;/bdi&gt;&lt;/p&gt;
> 

BDI (meant to isolate a text fragment from its surroundings) doesn't make much
sense here, since it applies to the entire paragraph content. In order to
isolate *some part(s) of the content* in a text input (which does not accept
inline markup), we may use the Unicode control characters RLI, LRI, FSI, PDI.

> or
> 
> &lt;p&gt;Name: &lt;input id="name" dir="auto"&gt;&lt;/p&gt; 

This sets base direction of the text to "auto", i.e. according to the first
strong character.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Sunday, 24 July 2016 12:24:33 UTC