blob: 185f90ee50cd43406b0e3f69bf06f1d52e92e3f0 [file] [log] [blame]
<html>
<head>
<title>pattern attribute set/get test</title>
<script language="JavaScript" type="text/javascript">
function log(message) {
document.getElementById("console").innerHTML += "<li>"+message+"</li>";
}
function test() {
if (window.testRunner)
testRunner.dumpAsText();
v = document.getElementsByName("victim");
v[0].pattern = "something";
log(v[0].pattern == "something" ? "SUCCESS" : "FAILURE");
}
</script>
</head>
<body onload="test()">
<p>There an input element with the pattern attribute not set.</p>
<input name="victim" />
<hr>
<ol id="console"></ol>
</body>
</html>