Side navigation
#6627 closed bug (wontfix)
Opened June 03, 2010 01:59AM UTC
Closed October 21, 2010 01:31AM UTC
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: |
Description
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:
jQuery("#spinner").fadeOut();
will cause jQuery to die at line 1177 as the local variable "queue" will come back undefined from the previous assignment attempt.
Attachments (0)
Change History (4)
Changed June 03, 2010 03:38AM UTC by comment:1
Changed June 12, 2010 01:35AM UTC by comment:2
component: | unfiled → fx |
---|
Changed October 04, 2010 12:10AM UTC by comment:3
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.
Changed October 21, 2010 01:31AM UTC by comment:4
keywords: | → object queue svg |
---|---|
resolution: | → wontfix |
status: | new → closed |
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.
The general problem is that object tags cannot be used with
, 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.