Bug 691367 - Firefox4 breaks <input type="image">
Summary: Firefox4 breaks <input type="image">
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 15
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-28 11:09 UTC by Harald Reindl
Modified: 2011-03-28 20:24 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-03-28 20:01:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 583211 0 None None None Never

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?


Note You need to log in before you can comment on or make changes to this bug.