Closed Bug 657869 Opened 13 years ago Closed 13 years ago

html input type image doesn't submit value anymore

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 583211

People

(Reporter: stefan, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.43 Safari/534.24
Build Identifier: 

Opposed to Internet Explorer, Firefox always has been posting the 'value' component of an <input type="image" value="something" /> the latest incarnation of Firefox doesn't anymore.

Reproducible: Always

Steps to Reproduce:
<html>
<form method="GET">
<input type="text" name="some" value="text" />
<input type="image" value="world" name="hello" src="./dia/shapes/Circuit/hpowersource_de.png" />
</form>
</html>

Actual Results:  
Submited;
Firefox 4: file:///tmp/test.html?some=text&hello.x=0&hello.y=0
Firefox 3: file:///tmp/test.html?some=text&hello.x=0&hello.y=0&hello=world
Chromium: file:///tmp/test.html?some=text&hello.x=20&hello.y=16&hello=world


Although the bug can be worked around with:

<input type="submit" class="image" name="action" value="1" style="background-image: url('preview/9efdcfa04043bc88bf0cac872e26d75d.png'); width: 269px; height: 200px; font-size: 0;" />
Reproduced.
Mozilla/5.0 (X11; Linux x86_64; rv:6.0a1) Gecko/20110517 Firefox/6.0a1

Last good nightly: 2010-02-24 First bad nightly: 2010-02-25

Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=ddfecbc93934&tochange=c390c6f279ee
Hardware: x86 → All
Version: unspecified → Trunk
This is considered a 'fix';

https://bugzilla.mozilla.org/show_bug.cgi?id=547165

I disagree strongly.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
> I disagree strongly.

Then get the HTML spec changed, please.
Status: RESOLVED → VERIFIED
(In reply to comment #4)
> Then get the HTML spec changed, please.

Given that the alternative is logging a bug with webkit/chrome/safari supporting a useful webfeature, including the rest of the web <http://www.w3schools.com/TAGS/att_input_type.asp> teaching it is in fact just a special 'submit button', I guess trying the above would be indeed a good thing.
You need to log in before you can comment on or make changes to this bug.