blob: bbcae5b5838b617b751aa7c0cff4e07a6b21ec1e [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("Test for <a href='https://bugs.webkit.org/show_bug.cgi?id=21903'>https://bugs.webkit.org/show_bug.cgi?id=21903</a>");
var input = document.createElement("input");
shouldBeEqualToString("input.placeholder", '');
input.setAttribute("placeholder", "p1")
shouldBeEqualToString("input.placeholder", 'p1');
input.placeholder = 'p2';
shouldBeEqualToString("input.getAttribute('placeholder')", 'p2');
shouldBeEqualToString("input.placeholder", 'p2');
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>