[Webkit-unassigned] [Bug 24010] New: textarea: initial values changed after submitting form
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 18 14:05:21 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=24010
Summary: textarea: initial values changed after submitting form
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
URL: http://bartdegoeij.nl/webkit/form.php
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: b.degoeij at auditio.nl
I 've got 2 html files:
form.php, which has a simple form with an input-text control and two textareas.
textarea1 doesn't have an initial value, textarea2 does.
The target of the form is confirm.php. confirm.html has a link which sends me
back to form.php by means of javascript: history.back().
When I enter text in all 3 form controls and submit the form, and click the
javascript "back"-link, all the entered text is still in the form controls.
This may have to do with the back/forward cache:
http://developer.apple.com/internet/safari/faq.html#anchor5.
To override this, I added the suggested http-headers to form.php, included an
invisble iframe, but the entered values are still there.
When I now press the reset-button on form.php, the input-text control is reset
to the initial value, specified in the source code. But the textareas keep the
text entered before.
Then, when I change the text in the textareas and hit Reset, their values are
changed back to the texts, entered before.
Expected behaviour is, that textareas are changed back to the initial values
indicated by the html source code, like other form controls.
Testcase:
http://bartdegoeij.nl/webkit/form.php
Steps to reproduce:
1. Fill in all form controls.
2. Submit the form.
3. In confirm.php, click Back. (Or use the browser's back button.)
4. Notice the input-text is empty again.
5. Notice the texts entered earlier are still in the textareas.
6. Hit the reset button.
7. Notice nothing changes.
8. Fill in the form controls again with new text.
9. Hit reset.
10. Notice the input-text is empty again.
11. Notice the texts entered earlier are still in the textareas.
(Web Inspector shows that the Defaultvalue is not equal to the value in the
html source code. It seems like the initial value of all form controls is
controlled by the html source code, but the initial value of a textarea is
changed to whatever is in the browser cache.)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list