xml:langattributes with the value "ar", the language code for Arabic and a
dirattribute with the value "rtl" for right-to-left text.
xml:langattributes and text direction for content in Arabic
This test case is intended to pass because primary language is correctly identified as Arabic and the text direction as right-to-left.
Can you determine the language and text direction of the text?
The browser can find the primary language and text direction of the document.
In HTML, the default text-direction is left to right, so only a right-to-left text direction needs to be identified (unless there are nested sections with different text directions).