4 <script src=
"../../../resources/js-test.js"></script>
5 <input list=
"d" id=
"input1">
9 description('We should restore selection after datalist availability change.');
10 var input1
= document
.querySelector('#input1');
12 document
.querySelector('datalist').innerHTML
= '<option value="a"></option>';
13 document
.execCommand('inserttext', false, 'abc');
14 shouldBeEqualToString('input1.value', 'abc');