blob: f2ba25a05dc1e336d2a59d78edc59f1c34c8b04a [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<form method="get" id="sad_form">
<input name="victim" type="text" required oninvalid="testPassed('Invalid control')"/>
<input name="victim" type="text" pattern="Lorem ipsum" value="Loremipsum" oninvalid="testPassed('Invalid control')"/>
<textarea name="victim" required oninvalid="testPassed('Invalid control')"></textarea>
</form>
<div id="console"></div>
<script>
description("This test checks if checkValidity() invoked on a form control correctly asks its elements to fire an invalid event.");
if (document.getElementById("sad_form").checkValidity())
testFailed('checkValidity should have returned false');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>