blob: 78a6101ab2a9a803b2e770618af672629a2c24e9 [file] [log] [blame]
<html>
<head>
<title>Check for willValidate property existence</title>
<script language="JavaScript" type="text/javascript">
function log(message) {
document.getElementById("console").innerHTML += "<li>"+message+"</li>";
}
function test() {
if (window.layoutTestController)
layoutTestController.dumpAsText();
i = document.getElementsByName("victim");
for (c = 0; c < i.length; c++)
log(typeof i[c].willValidate != "undefined" ? "SUCCESS" : "FAILURE");
}
</script>
</head>
<body onload="test()">
<form>
<input name="victim"/>
<textarea name="victim"></textarea>
<fieldset name="victim">Test</fieldset>
<button name="victim">
<select name="victim"></select>
</form>
<hr>
<ol id="console"></ol>
</body>
</html>