summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-placeholder-set-attribute.html
blob: eac5d7a153cfa389e502ae082f1fc76682d2e7ca (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.testRunner)
        testRunner.notifyDone();
}

function test()
{
    if (window.testRunner)
        testRunner.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>