summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/pattern-attribute-003.html
blob: 7231ac215eb986845c2634cd48ae9a6d24d81de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
<head>
<title>pattern attribute set 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 += " else";
        log(v[0].pattern == "something else" ? "SUCCESS" : "FAILURE");
    }
</script>
</head>
<body onload="test()">
<p>There an input element with the pattern attribute set.</p>
<input name="victim" pattern="something" />
<hr>
<ol id="console"></ol>
</body>
</html>