This project is archived and is in readonly mode.

#679 ✓duplicate
Björn

Form call with button named "send" inside fails in IE6 on first call

Reported by Björn | May 29th, 2009 @ 03:51 PM | in 2.0 (closed)

If there's a Button named "send" inside of a form, the form is undefined(IE 6) on the first call. Second call works. Check the attached file.

Regards.

Comments and changes to this ticket

  • Scott Kyle

    Scott Kyle May 29th, 2009 @ 06:27 PM

    • Tag changed from 1.2.2, form, ie6 to 1.2.2, form, ie

    This problem is caused by the $ function extending the form element with MooTools methods, which includes a send() method. IE6 and 7 don't like it when you try to overwrite a named input of the form. Even without including MooTools, you can reproduce this error with the following:

    document.getElementById('test_form').send = function(){};
    

    Maybe $.element() should be patched?

    $.element = function(el, nocash){
        $uid(el);
        if (!nocash && !el.$family && !(/^object|embed$/i).test(el.tagName)){
            var proto = Element.Prototype;
            for (var p in proto)
                if (!el[p]) el[p] = proto[p];  // check first
        };
        return el;
    };
    
  • Scott Kyle

    Scott Kyle August 9th, 2009 @ 09:16 PM

    This is a duplicate of issue #601.

  • Scott Kyle

    Scott Kyle August 10th, 2009 @ 08:15 PM

    • State changed from “invalid” to “duplicate”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Attachments

Tags

Referenced by

Pages