haikuwebkit/LayoutTests/fast/forms/disabled-attr-checkvalidity...

24 lines
508 B
HTML

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<input id="input" disabled required />
<script>
description('Test if changing disabled updates checkValidity.');
var input = document.getElementById('input');
input.value = "";
input.disabled = false;
shouldBeFalse('input.checkValidity()');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>