blob: 2a56ad26ed4b69b5af81400a7240248953226a0c [file] [log] [blame]
<p>This is a test for <a href="https://bugs.webkit.org/show_bug.cgi?id=70586">bug 70586</a>.</p>
<ol>
<li>Use defaultValue method to change "value" attribute.
<input id="c1" placeholder="Placeholder" /><br />
</li>
<li>Use setAttribute method to change "value" attribute.
<input id="c2" placeholder="Placeholder" /><br />
</li>
</ol>
<script>
document.getElementById("c1").defaultValue = "Default";
document.getElementById("c2").setAttribute("value", "Default");
</script>