Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!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="setAllDirAttribute('foopy')">
<div><input type="text" value="ABC אבג" id="set0"></div>
<div><span id="set1">ABC אבג</span></div>
<div><textarea id="set2">ABC אבג</textarea></div>
<div><button id="set3">ABC אבג</button></div>
<div><bdi id="set4">ABC אבג</bdi></div>
</body>
</html>