textarea-reset-default-value.html 969 B

123456789101112131415161718192021222324
  1. <html>
  2. <head>
  3. <title>Test for https://bugs.webkit.org/show_bug.cgi?id=31539</title>
  4. <!-- Manual test for https://bugs.webkit.org/show_bug.cgi?id=31539.
  5. Ensure that the value and defaultValue on a textarea is restored correctly when
  6. we restore form state (e.g. by hitting back after submitting a form). -->
  7. </head>
  8. <body>
  9. <h2>Manual test for https://bugs.webkit.org/show_bug.cgi?id=31539.</h2>
  10. <p>To run this test:</p>
  11. <ul>
  12. <li>Change the text in the &lt;textarea&gt; below.</li>
  13. <li>Submit the form. The form should navigate back immediately.</li>
  14. <li>Note that the value in the text area matches what you entered before submitting the form, this is correct.</li>
  15. <li>Now click the reset button for the form.
  16. <li>The text in the &lt;textarea&gt; should now match '123', the default text for the &lt;textarea&gt;.</li>
  17. </ul>
  18. <iframe src="resources/textarea-form-back-on-submit.html" width="800" height="200" id="frame"></iframe>
  19. </body>
  20. </html>