Bug Tracker

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#9803 closed bug (invalid)

.data() doesn't work on object or embed elements

Reported by: chriscoyier@… Owned by:
Priority: low Milestone: None
Component: data Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Change History (4)

comment:1 Changed 5 years ago by rwaldron

  • Component changed from unfiled to data
  • Priority changed from undecided to low
  • Resolution set to wontfix
  • Status changed from new to closed

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/

comment:2 Changed 5 years ago by rwaldron

  • Resolution wontfix deleted
  • Status changed from closed to reopened

comment:3 Changed 5 years ago by rwaldron

  • Resolution set to invalid
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.