blob: 1c991ab388aec56432e013b5301d0cf5e116722f [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test-pre.js"></script>
<input type=number id=numberinput>
<script>
numberinput.focus();
eventSender.keyDown('1');
eventSender.keyDown('2');
shouldBeTrue('numberinput.value == "12"');
eventSender.keyDown('e');
shouldBeTrue('numberinput.value == ""');
shouldBeFalse('numberinput.validity.valid');
numberinput.defaultValue = '12345';
shouldBeFalse('numberinput.validity.valid');
</script>
<script src="../../resources/js-test-post.js"></script>