<html dir="rtl"> for Right-to-Left Documents; Not CSS

robinhood1362 - December 8, 2007 - 12:53
Project:PHPTemplate
Version:4.6.x-1.x-dev
Component:Template Defaults
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Shouldn't we assign the rtl direction to the html not by means of style but as an attribute to the html? In a right-to-left context, it's the content (HTML) that's right-to-left by nature, not the presentation (CSS) anyway. Of course we'll need to change (maybe switch) anything that reads "right" or "left" in the css files.
This way, by adding a dir="rtl" attribute to the tag, when viewing page with no style (or the browser's default style, if you like to call it) you'll still be able to view the hopefully semantic content in full RTL glory! It's more semantic than adding a direction: rtl; to the style, which is separated from content.
[This discussion first opened here and discontinued: http://drupal.org/node/145737#comment-648017 ]

 
 

Drupal is a registered trademark of Dries Buytaert.