Bug 691367

Summary: Firefox4 breaks <input type="image">
Product: [Fedora] Fedora Reporter: Harald Reindl <h.reindl>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: gecko-bugs-nobody
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-28 20:01:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Harald Reindl 2011-03-28 11:09:14 UTC
Firefox4 breaks <input type="image" action="value"> 
by not submitting the action-attribute

I can not submit this to upstream-bugtracker because they have disabled my account after my anger about the since a year unusable broken account-wizard in thunderbird :-(



FF 1 - FF 3.6: 
Array ( [myinput] => test [action_x] => 8 [action_y] => 8 [action] => Save )

FF 4: 
Array ( [myinput] => test [action_x] => 7 [action_y] => 5 )

_______________________________

  <?php
   if(!empty($_POST))
   {
    print_r($_POST);
   }
  ?>
  <form action="index.php" method="POST">
   <input type="text" name="myinput" />
   <input type="image" name="action" value="Save" src="save.gif" />
   <input type="image" name="action" value="Cancel" src="cancel.gif" />
  </form>
_______________________________

this is a major bug and firefox acts now like msie, so i have to change our backend-functions to give all users a classic submit-button instead an image

Comment 1 Christopher Aillon 2011-03-28 20:01:36 UTC
The Firefox 4 behavior is correct.  This is NOTABUG.

References:
https://bugzilla.mozilla.org/show_bug.cgi?id=583211
http://www.onenaught.com/posts/382/firefox-4-change-input-type-image-only-submits-x-and-y-not-name

Comment 2 Harald Reindl 2011-03-28 20:24:21 UTC
> However, our behavior is correct according to HTML5, 
> which we're tracking

this is bulls**t as long the document starts with <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
and HTML5 is a working draft

even if HTML5 would be finalized there is no reason because this does not change the doctype in the file, so what do they think at mozillas side? is it a funny game to break backward-compatibility?