<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Set and unset dir="auto"</title> <script type="text/javascript" src="setDir.js"></script> <style> textarea { resize: none; } </style> </head> <body onload="addLTRAutoElements()"> <div id="container"></div> </body> </html>