3 <title>pattern attribute presence test
</title>
4 <script language=
"JavaScript" type=
"text/javascript">
5 function log(message
) {
6 document
.getElementById("console").innerHTML
+= "<li>"+message
+"</li>";
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
13 v
= document
.getElementsByName("victim");
15 log(v
[0].pattern
? "SUCCESS" : "FAILURE");
19 <body onload=
"test()">
20 <p>There an input element with the pattern attribute set.
</p>
21 <input name=
"victim" pattern=
"something" />
23 <ol id=
"console"></ol>