5 document
.getElementById('res').innerHTML
= document
.getElementById('res').innerHTML
+ msg
+ "<br>";
10 testRunner
.dumpAsText();
12 var tf
= document
.getElementById('tf');
14 tf
.setSelectionRange(3, 12);
15 log("setSelectionRange(3, 12)");
16 if (tf
.selectionStart
== 3 && tf
.selectionEnd
== 12)
19 log("Failed. selection start: " + tf
.selectionStart
+ " selection end: " + tf
.selectionEnd
);
21 tf
.style
.visibility
= "visible";
25 <body onload=
"test()">
26 This tests the selection methods on the new text field when it is hidden and then made visible.
28 <input type=
"text" id=
"tf" style=
"visibility:hidden" value=
"123456789 ABCDEFGHIJ"></input>