blob: 62f1a8812ec51fe386b9bc4a6bb8a59a00db85a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<html>
<body>
<button type="button" id="button1">FOOO</button>
<input type="text" id="input1">
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
var button1 = document.getElementById('button1');
var input1 = document.getElementById('input1');
input1.setSelectionRange(0);
input1.type = 'week';
var oSelection = window.getSelection();
document.execCommand('SelectAll');
oSelection.deleteFromDocument();
input1.value = 'foo';
</script>
<p>Pass if it doesn't crash</p>
</body>
</html>
|