1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
10 description('Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=21248">https://bugs.webkit.org/show_bug.cgi?id=21248</a>');
12 var textarea
= document
.createElement('textarea');
14 shouldBeEqualToString('textarea.placeholder', '');
16 textarea
.setAttribute('placeholder', 'p1')
17 shouldBeEqualToString('textarea.placeholder', 'p1');
18 shouldBeEqualToString('textarea.value', '');
20 textarea
.placeholder
= 'p2';
21 shouldBeEqualToString('textarea.getAttribute("placeholder")', 'p2');
22 shouldBeEqualToString('textarea.placeholder', 'p2');