Skip to main content

Bug Tracker

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: Owned by:
Priority: low Milestone: None
Component: data Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Attachments (0)
Change History (4)

Changed July 12, 2011 02:07AM UTC by rwaldron comment:1

component: unfileddata
priority: undecidedlow
resolution: → wontfix
status: newclosed

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:

Changed July 12, 2011 08:16PM UTC by rwaldron comment:2

resolution: wontfix
status: closedreopened

Changed July 12, 2011 08:17PM UTC by rwaldron comment:3

resolution: → invalid
status: reopenedclosed

Changed July 12, 2011 08:28PM UTC by rwaldron comment:4