blob: d2443e959e9e199c567a4950673fba0edc0b20c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<html>
<head>
<title>Input Align</title>
</head>
<body>
<p>The following 5 inputs should be all be rendered exactly the same, aligned to the left side.</p>
<input type='text' align='right' value='The quick brown...' />
<br>
<input type='text' value='The quick brown...' />
<br>
<input type='text' value='The quick brown...' id='test1' />
<br>
<script>
<!--
// This script tries to set the align attribute on an input of type text.
// Nothing should happen...
var obj1 = document.getElementById('test1');
obj1.setAttribute('align', 'right');
-->
</script>
<input type='image' align='right' value='The quick brown...' id='test2' />
<br>
<script>
<!--
// This script tries to set the align attribute on an input of type text.
// Nothing should happen...
var obj2 = document.getElementById('test2');
obj2.setAttribute('type', 'text');
-->
</script>
<div id='insertionpoint'></div>
<script>
<!--
var ins = document.getElementById('insertionpoint');
var obj3 = document.createElement('INPUT');
obj3.setAttribute('align', 'right');
obj3.setAttribute('value', 'The quick brown...');
ins.appendChild(obj3);
//-->
</script>
</body>
</html>
|