blob: 46111899668915f6e734f543a2e7c274d49c918e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!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="setAllTextChildrenTo('ABC אבג')">
<div><input type="text" value="אבג ABC" id="set0" dir="auto"></div>
<div><span id="set1" dir="auto">אבג ABC</span></div>
<div><textarea id="set2" dir="auto">אבג ABC</textarea></div>
<div><button id="set3" dir="auto">אבג ABC</button></div>
<div><bdi id="set4">אבג ABC</bdi></div>
</body>
</html>
|