Side navigation
#9803 closed bug (invalid)
Opened July 12, 2011 01:57AM UTC
Closed July 12, 2011 08:17PM UTC
Last modified July 12, 2011 08:28PM UTC
.data() doesn't work on object or embed elements
| Reported by: | chriscoyier@gmail.com | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | data | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
See fiddle: http://jsfiddle.net/chriscoyier/UxW3V/1/
Attachments (0)
Change History (4)
Changed July 12, 2011 02:07AM UTC by comment:1
| component: | unfiled → data |
|---|---|
| priority: | undecided → low |
| resolution: | → wontfix |
| status: | new → closed |
Changed July 12, 2011 08:16PM UTC by comment:2
| resolution: | wontfix |
|---|---|
| status: | closed → reopened |
Changed July 12, 2011 08:17PM UTC by comment:3
| resolution: | → invalid |
|---|---|
| status: | reopened → closed |
Changed July 12, 2011 08:28PM UTC by comment:4
See also, http://bugs.jquery.com/ticket/1675
Thanks for contributing to jQuery - this behaviour is actually known, expected and tested.
If you look in the src/data module, you'll find the following:
// The following elements throw uncatchable exceptions if you // attempt to add expando properties to them. noData: { "embed": true, // Ban all objects except for Flash (which handle expandos) "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", "applet": true },It's even documented here:
http://api.jquery.com/data/