3 <title>Input (
type=
"image") Align
</title>
6 <p>The following
4 images should be all be rendered exactly the same, aligned to the right side.
</p>
7 <input type='image' align='right' src='resources/apple.gif'
/>
9 <input align='right' src='resources/apple.gif' type='image'
/>
11 <input type='image' id='test1' src='resources/apple.gif'
/>
16 // This script tries to set the align attribute on an input of type text.
17 // Nothing should happen...
18 var obj1
= document
.getElementById('test1');
19 obj1
.setAttribute('align', 'right');
23 <div id='insertionpoint'
></div>
26 var ins
= document
.getElementById('insertionpoint');
27 var obj2
= document
.createElement('INPUT');
28 obj2
.setAttribute('align', 'right');
29 obj2
.setAttribute('src', 'resources/apple.gif');
30 obj2
.setAttribute('type', 'image');
31 ins
.appendChild(obj2
);