summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/textarea-placeholder-set-attribute.html
blob: c97cb1dfcd7a6eec38867346b6ee040d949da896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script>

function finishTest()
{
    document.getElementById('textarea').setAttribute('placeholder','Placeholder');
    if (window.layoutTestController)
        layoutTestController.notifyDone();
}

function test()
{
    if (window.layoutTestController)
        layoutTestController.waitUntilDone();
    setTimeout(finishTest, 0);
}

</script>
<body onload="test()">
<p>If you can see the word "Placeholder" in the text area, then all is well.</p>
<p><textarea id="textarea"></textarea></p>
</body>