2 <script src="../../resources/js-test.js"></script>
3 <p>There was a bug that the value property of a cloned text input was not updated.</p>
5 <input id=i1 value="Initial" style>
6 <input id=i2 type=search value="Initial" style>
7 <input id=i3 type=number value="0" style>
12 var container = document.getElementById('container');
15 function check(id, value) {
16 var original = document.getElementById(id);
17 clone = original.cloneNode();
18 container.replaceChild(clone, original);
20 document.execCommand('selectAll');
21 document.execCommand('insertText', false, value);
23 debug('Check for ' + clone.type + ' type:');
24 shouldBe('clone.value', 'newValue');
30 container.innerHTML = '';