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: | davidtwtong@gmail.com | Owned by: | timmywil |
---|---|---|---|
Priority: | high | Milestone: | 1.next |
Component: | attributes | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
See demo: http://jsfiddle.net/davidtong/HFfTP/2/
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 comment:1
component: | unfiled → attributes |
---|---|
owner: | → timmywil |
priority: | undecided → high |
status: | new → assigned |
Changed May 27, 2011 02:00AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | assigned → closed |
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 comment:3
@timmywil thanks for sorting that quickly, sorry for the false alarm.
Changed May 27, 2011 02:20AM UTC by 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.