-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTL in html #3
Comments
You mean if language is set, the 'dir' Attribute should be set automatically? |
Yes. |
ISO 3166-1 alpha-2 code has 249 country codes. Will have to consider all which kinda difficult task unless you have another Idea. |
You can let the user set |
If you didn't notice, the class HTMLNode has a method to set the writing direction which is ::setWritingDir() So, it is possible to set writing direction by using something like that: $doc = new HTMLDoc();
$doc->getDocumentRoot()->setWritingDir('ltr') Do you think that I should add a default value for the attribute or keep it empty? |
You can default it to ltr unless specified. |
Add direction attribute with value rtl in case of arabic language to html tag, so that
<html lang="ar">
will become<html dir="rtl" lang="ar">
instead.The text was updated successfully, but these errors were encountered: