Skip to main content

Bug Tracker

Side navigation

#9437 closed bug (invalid)

Opened May 27, 2011 01:33AM UTC

Closed May 27, 2011 02:00AM UTC

Last modified May 27, 2011 02:20AM UTC

prop('method) performed on a form element returns a bunch of elements that are named "method"

Reported by: Owned by: timmywil
Priority: high Milestone:
Component: attributes Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

See demo:

prop('method') should be an empty string, but in reality (jQuery 1.6.1) it returns the three input elements named "method".

Attachments (0)
Change History (4)

Changed May 27, 2011 01:53AM UTC by rwaldron comment:1

component: unfiledattributes
owner: → timmywil
priority: undecidedhigh
status: newassigned

Changed May 27, 2011 02:00AM UTC by timmywil comment:2

resolution: → invalid
status: assignedclosed

This is how properties of a form are designed to work. If you'd like to retrieve the method attribute, use attr.

Changed May 27, 2011 02:13AM UTC by rwaldron comment:3

@timmywil thanks for sorting that quickly, sorry for the false alarm.

Changed May 27, 2011 02:20AM UTC by timmywil comment:4

No problem. This is why forms get special treatment in IE when trying to retrieve and set their attributes. Even with get/setAttribute, IE6/7 will get and set the property instead.