Skip to main content

Bug Tracker

Side navigation

#4039 closed bug (duplicate)

Opened February 02, 2009 01:14AM UTC

Closed February 03, 2009 01:45AM UTC

Last modified February 03, 2009 04:03AM UTC

Error updating form attributes in IE

Reported by: malsup Owned by:
Priority: major Milestone: 1.3.2
Component: core Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:

IE issue:

If a user creates a form with inputs named "action" or "method" jQuery fails when attempting to update the method or action attributes of the form object. This becomes a problem for the Form Plugin which tries to do the following when uploading files:

    target:   id,
    method:   'POST',
    action:   opts.url

In IE, this fails in jQuery 1.3.1 at line 985 (attr fn):

elem[ name ] = value;

Turns out that this also fails in jQuery 1.2.6 but not in jQuery 1.2.3.

A test page is available here:

Attachments (0)
Change History (2)

Changed February 03, 2009 01:45AM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Duplicate of #3113

Changed February 03, 2009 04:03AM UTC by malsup comment:2

Oops, sorry for the dup. Footnote: version 2.19 of the From Plugin works around the problem using setAttribute instead of $.fn.attr.