This document may contain examples in another language or script.

Use accesskey "n" to jump to the internal navigation links at any point. Right now you can do one of the following:

Go to W3C Home PageGo to Architecture Domain home page  Internationalization 
 

Test results: Bidi in window title and tooltip

This page summarises results for a set of tests aimed at discovering whether bidirectional text is displayed as expected in the window title bar and tooltips.

There are two aspects to these tests:

  1. Are the characters in the Arabic and Hebrew words displayed in the correct sequence? This tests basic application of the bidirectional algorithm.
  2. Are the directional runs in the text displayed in the expected order? This tests whether the directional context is correct for the text in question.

The expected results should look like this:
France مصر ישראל Deutschland
Visually from left to right this is: German Hebrew Arabic French. The actual order of the text in memory is: French Arabic Hebrew German.

Window title results

Note that the overall directionality of the title displayed, including the name of the application, is left-to-right, however, the order of the text taken from the title element should be displayed in an embedded right-to-left context, since this is what is specified in the page.

All these tests were run on Windows XP Professional. This may be relevant to the results.

IE 6.0

Snapshot of result.

Characters: OK

Directional runs: Incorrect

Firefox 1.0PR

Snapshot of result.

Characters: OK

Directional runs: Incorrect

Mozilla 1.7.2

Snapshot of result.

Characters: OK

Directional runs: Incorrect

Netscape 7.1

Snapshot of result.

Characters: OK

Directional runs: Incorrect

Opera 7.5.4

Snapshot of result.

Characters: OK

Directional runs: Incorrect

Tooltip results

IE 6.0

Snapshot of result.

Characters: OK

Directional runs: OK

Firefox 1.0PR

Snapshot of result.

Characters: OK

Directional runs: Incorrect. Not only has Firefox incorrectly ordered the French and German words (which indicates that the context is incorrectly interpreted), but it has also incorrectly ordered the Arabic and Hebrew - this indicates that the bidirectional algorithm is being incorrectly applied, since two RTL words side by side should constitute a single directional run.

Mozilla 1.7.2

Snapshot of result.

Characters: OK

Directional runs: Incorrect

Netscape 7.1

Snapshot of result.

Characters: OK

Directional runs: Incorrect

Opera 7.5.4

Snapshot of result.

Characters: OK

Directional runs: Incorrect

Note that Opera prepends some text to indicate that this comes from the title attribute. This would indicate that for a non-bidi version of the browser, the overall context of the tooltip text is properly left-to-right. However, the attribute text should still be presented visually from left to right: German Hebrew Arabic French.

Summary

All user agents displayed the characters in the correct order.

None of the user agents tested displayed the words in the correct order in the window title bar. It is not clear, however, whether the display is a function of the operating system rather than the user agent.

Of the user agents tested, only IE 6.0 displayed the words in the tooltip in the correct order. Firefox even incorrectly applied the bidirectional algorithm in the tooltip display.

Further reading

Author: Richard Ishida (W3C).

Valid XHTML 1.0!
Valid CSS!
Encoded in UTF-8!

Content created 8 October, 2004. Last update 2004-10-08 09:58 GMT