Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6627 closed bug (wontfix)

jQuery.queue dies when running simple effects on object elements

Reported by: khiltd Owned by:
Priority: low Milestone: 1.4.3
Component: effects Version: 1.4.2
Keywords: object queue svg Cc:
Blocked by: Blocking:


Given an element as such:

<object id="spinner" data="/images/spinner.svg" type="image/svg+xml"></object>

Attempting something like a simple fade out like so:


will cause jQuery to die at line 1177 as the local variable "queue" will come back undefined from the previous assignment attempt.

Change History (4)

comment:1 Changed 13 years ago by dmethvin

The general problem is that object tags cannot be used with jQuery.data(), which the animation calls internally. It could be wrapped in a div and that could be faded. I'll leave this ticket open as a todo for the documentation.

comment:2 Changed 13 years ago by dmethvin

Component: unfiledfx

comment:3 Changed 13 years ago by addyosmani

Priority: low

Adding a reminder for us to update the documentation regarding this particular ticket.

I believe that I remember seeing a patch go in for objects where .data() could be used recently but this may have been limited to just Flash use of the object tag and not necessarily expanded to SVG.

Leaving open for a further review.

comment:4 Changed 13 years ago by addyosmani

Keywords: object queue svg added
Resolution: wontfix
Status: newclosed

I've made a note for us to update the documentation on this particular ticket to clearly state how object tags should ideally be used in conjunction with animation calls. This type of example (SVG object being faded out) will indeed crash jQuery and it is recommended that as dmethvin previously stated, one wraps the object inside a div instead of directly applying the animation to a selector pointing at the object. Closing and filing in doc updates.

Note: See TracTickets for help on using tickets.