"How hard would it be to allow assigning element directionality according to lang. In HTML4 and in the current draft of HTML5, <span lang="ar"> has dir="ltr", unless specified otherwise, and I find it ridiculous".The usual replies Amir gets is:
- Backwards compatibility
- Many websites already use HTML-5 even though it is not a finished product. This will break them
- If a document explicitly specifies that it's HTML5, it should have directionality assignment by default.
- Add an attribute to the root HTML tag, something like: <html dir="bylang"> or <html dirbylang="true">
What we need is proper meta data for all languages and such data can hide very nicely inside a browser. Developers of websites do not know and want to know about all the linguistic niceties necessary to support a multi lingual web. It so many ways it makes sense to provide language support from inside the browser.
At the Wikimedia Foundation we we don't just support a lot of languages, we are also well aware of the languages we support. Ours is a world-wide community of people who have the opportunity to openly complain to us about bad support for their language and they expect that their complaint is actually read and is being taken care of.