| <p>This tests that a textarea where the wrap attribute is removed reverts to normal wrapping behavior.</p> |
| <form name="f" method="?" action="textarea-linewrap-dynamic.html"> |
| <textarea id="textarea" name="textarea" wrap="hard" cols="5">123456789</textarea> |
| if (document.URL.indexOf('?') == -1) { |
| if (window.layoutTestController) { |
| window.layoutTestController.dumpAsText(); |
| window.layoutTestController.waitUntilDone(); |
| document.getElementById("textarea").removeAttribute("wrap"); |
| var formData = document.URL.substring(document.URL.indexOf('?') + 1, document.URL.length); |
| if (formData == "textarea=123456789") |
| document.write("Success"); |
| document.write("Failure. The form data that should have been submitted: textarea=123456789<br>This is what was actually submitted: " + formData); |
| if (window.layoutTestController) |
| window.layoutTestController.notifyDone(); |