layout/reftests/bidi/bdi-element-ref.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!DOCTYPE html>
     2 <html>
     3 <head>
     4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     5 </head>
     6 <body>
     7 <p>
     8   From WebKit <a href='https://bugs.webkit.org/show_bug.cgi?id=50913'>bug 50913</a>
     9 </p>
    10 <p>
    11 In this example, usernames are shown along with the number of posts that the user has submitted. If the bdi element were not used, the username of the Arabic user would end up confusing the text (the bidirectional algorithm would put the colon and the number "3" next to the word "User" rather than next to the word "posts").
    12 </p>
    13 <ul>
    14  <li><bdo dir="ltr">User jcranmer: 12 posts.</bdo>
    15  <li><bdo dir="ltr">User hober: 5 posts.</bdo>
    16  <li><bdo dir="ltr">User نايإ: 3 posts.</bdo>
    17 </ul>
    18 </body>
    19 </html>

mercurial