Closed Bug 305518 Opened 19 years ago Closed 19 years ago

<Input type=image name=foo value=bar> incorrectly returns also foo=bar, besides the click coordinates

Categories

(Core :: DOM: Core & HTML, defect)

1.8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 142089

People

(Reporter: cn6uw7d02, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a6) Gecko/20050111

A form containing:
<input type="image" border=0 src="vastaa-kaikille.gif" value="Vastaa kaikille"
name="replyAll"> 

When one clicks on that image, firefox (and mozilla) returns following values
replyAll.x=12
replyAll.y=30
replyAll=Vastaa kaikille

The first two are the coordinates of the mouse click. The last one is the bug.
It should not be returned at all. Looking at html4.01 spec (outdated, I know)

======= cut here ========
http://www.w3.org/TR/html4/interact/forms.html#h-17.4

image
Creates a graphical submit button. The value of the src attribute specifies the
URI of the image that will decorate the button. For accessibility reasons,
authors should provide alternate text for the image via the alt attribute. 

When a pointing device is used to click on the image, the form is submitted and
the click coordinates passed to the server. The x value is measured in pixels
from the left of the image, and the y value in pixels from the top of the image.
The submitted data includes name.x=x-value and name.y=y-value where "name" is
the value of the name attribute, and x-value and y-value are the x and y
coordinate values, respectively.
============= Cut here ========================

The above does not mention anything about returning plain name=value
Opera and IE do not return plain name=value pair.


Reproducible: Always

Steps to Reproduce:
1.Have a form with <input type=image name=.. value=..> tag
2.Click on the tag
3.Check the returned values

Actual Results:  
Values returned:
name.x=x_click_coord
name.y.=y_click_coord
name=value


Expected Results:  
Software should return only name.x=x_coord_value, name.y=y_coord_value, without
name=value
The spec also says that the image input "Creates a graphical submit button". The
submit button sends the name=value data when clicked so I don't see why the
image shouldn't. I also don't see it as anything that could cause problems
unless the server side script cannot handle extraneous information.
Assignee: nobody → form-submission
Component: General → HTML: Form Submission
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch
Dupe of bug 142089.

*** This bug has been marked as a duplicate of 142089 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
v. dupe
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.