Closed
Bug 267976
Opened 20 years ago
Closed 20 years ago
Improperly displays textarea value if using an array of textareas
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: andrew.flanagan, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 This error occurs when you load a page that contains an array of textareas (for example <textarea name='item[]'>Item1</textarea>. It will display the text of each textarea on the page as having the value of the LAST textarea array item. Please see the URL above to see an example. When you first load the sample URL, I noticed that Firefox displays it correctly. Upon reloading the page, it displays it incorrectly every time (even if you later browse back to the page). If you view the source, you'll see what I'm talking about. If you explicitly number each array item (item[0], item[1], etc.) it appears to work just fine. Both the Mozilla Suite and Internet Explorer will display this correctly. Reproducible: Always Steps to Reproduce: 1. Create a very basic web page with the following code: (hopefully this displays correctly...) <pre> --- <html> <body> <form> <textarea name='item[]'>Text1</textarea> <textarea name='item[]'>Text2</textarea> <textarea name='item[]'>Text3</textarea> </form> </body> </html> --- </pre> 2. Save this file as "bug.html". 3. Load the file in Firefox, and click Reload once. Actual Results: You will see three textareas that all contain "Text3". Expected Results: You should have seen three textareas with the values "Text1", "Text2", and "Text3" . Please contact me if you need more info -- you can IM me at exweb9 (AIM).
| Reporter | ||
Comment 1•20 years ago
|
||
I didn't know how Buzilla formatted text: Obviously the sample HTML file should simply be: <html> <body> <form> <textarea name='item[]'>Text1</textarea> <textarea name='item[]'>Text2</textarea> <textarea name='item[]'>Text3</textarea> </form> </body> </html
Comment 2•20 years ago
|
||
Is this bug still valid? It seems to work now when viewing the given URL. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050610 Firefox/1.0+ ID:2005061006
| Reporter | ||
Updated•20 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
Updated•20 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•