#9940 closed bug (invalid)
Data Attributes Can't Be Set on object Elements
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | data | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Data attributes can be set on regular elements like so:
el = $('div'); el.data('foo', 'bar'); el.data('foo') 'bar'
But they don't seem to work for object elements:
el = $('object'); el.data('foo', 'bar') el.data('foo') undefined
Change History (2)
comment:1 Changed 12 years ago by
Component: | unfiled → data |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This is expected behavior. http://api.jquery.com/data