Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

:disable_with option to submit_tag() doesn't work with IE

#1955

The implementation of this option resets the input button's type attribute to hidden. IE doesn't allow the type of an tag to be changed dynamically, and throws a "this command is not supported" error.

Reported by Timothy Jones · February 12th, 2009 @ 10:28 PM

State: committed
Milestone: none
Assigned to: Michael Koziarski Michael Koziarski
Importance: Medium

Activity

  1. Han Kessels
    Han Kessels
    • Tag changed from 2.2.2, ie, submit_tag to 2.2.2, ie, patch, submit_tag

    Here is a patch. Instead of cloning the button element and changing it's type, it simply creates a new hidden element and copies name and value. Test updates are included.

    See also here

    March 28th, 2009 @ 07:40 AM

  2. Michael Koziarski
    Michael Koziarski
    • Assigned user set to Michael Koziarski
    • Milestone cleared.

    April 27th, 2009 @ 09:31 AM

  3. Han Kessels
    Han Kessels

    Thanks Michael.

    It would be great if this patch could land in the next 2.3.x release.

    May 24th, 2009 @ 03:28 AM

  4. Michael Koziarski
    Michael Koziarski

    Are name and value sufficient? It could mess up formatting stuff if we don't copy classes, etc right?

    Which versions of IE does this break in?

    May 26th, 2009 @ 11:59 AM

  5. Han Kessels
    Han Kessels

    It breaks in IE6, 7 and 8.

    The new element is a hidden input element, so formatting will not be affected. Its only purpose is to pass along the button's value on submit, so name and value should be all that is needed.

    May 26th, 2009 @ 12:15 PM

  6. Michael Koziarski
    Michael Koziarski
    • State changed from new to committed

    Pushed to 2-3-stable and master. Is #633 ok now too?

    June 1st, 2009 @ 03:06 AM

  7. Han Kessels
    Han Kessels
    • Tag changed from 2.2.2, ie, patch, submit_tag to 2-3-stable, ie, patch, submit_tag

    Thanks!

    #633 is good too.

    June 1st, 2009 @ 07:53 AM