<!DOCTYPE html> <html dir="rtl"> <head> <meta charset="utf-8"> <title>Test SetDir() for documents</title> </head> <body> <div>getDir on document after setDir returns "rtl"</div> </body> </html>