Closed Bug 239382 Opened 20 years ago Closed 20 years ago

form variable not sent when alt text is used in input type=image tag

Categories

(Toolkit :: Form Manager, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 122238

People

(Reporter: mozilla.org, Assigned: dveditz)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

When the browser displays the "alt text" for an "input type=image" tag, the form
data for that tag is not sent to the server when the user clicks on the button.

Let's take the following HTML:

<form method=post>
<input type=image src=none.gif alt='button'>
<input type=image src=button.gif alt='button'>
</form>

Assuming that "none.gif" does not exist and "button.gif" does exist, this will
create type buttons.  The first will use the alt text "button", and the second
will use the image button.gif.

If you click on the second, the following form data will be sent to the web server:

Content-Length: 7
x=6&y=6

(I got this via the "Live HTTP headers" add-on).

However, if you click on the first button, no form data is sent at all! The web
server has no idea that the user clicked on the button.


Reproducible: Always
Steps to Reproduce:
Fixed in 1.7 builds.

*** This bug has been marked as a duplicate of 122238 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Core → Toolkit
QA Contact: form.manager
You need to log in before you can comment on or make changes to this bug.