Opened 12 years ago
Closed 12 years ago
#9253 closed bug (wontfix)
prop() Inconsistant in IE7,8
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | attributes | Version: | 1.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
http://jsfiddle.net/aNgzu/ Try this sample in IE7,8 and FF or Chrome, the value of .prop() is not consistant.
Test in 1.6 and 1.6.1 RC1
Change History (1)
comment:1 Changed 12 years ago by
Component: | unfiled → attributes |
---|---|
Priority: | undecided → low |
Resolution: | → wontfix |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Thanks for taking the time to contribute to the jQuery project!
This is not really of consequence since you want to retrieve the attribute instead of the property. Custom attributes may or may not be reflected by a property depending on the browser. If you need it to be a property, you can set it with prop, but in the use case you've provided, .attr("age") will be consistent across browsers and that is what you want to retrieve.