#2845 closed bug (fixed)
Sortable that has OBJECT tag generates error in IE
Reported by: | tokyotoejam | Owned by: | paul |
---|---|---|---|
Priority: | major | Milestone: | 1.3.2 |
Component: | core | Version: | 1.3.1 |
Keywords: | sortable | Cc: | |
Blocked by: | Blocking: |
Description
I have group of Sortables divs. One of the divs has a simple OBJECT that imbeds a youtube video. In IE when I try to drag this div around, it generates an error at line 310 saying "Object doesn't support this property or method". When I remove the OBJECT Tag, I do not get an error so I am thinking that the sortables dont like the OBJECT tag in IE. (Other browsers work fine)
Change History (4)
comment:1 Changed 15 years ago by
Status: | new → assigned |
---|
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
I have a bit of a workaround for this bug, until someone can confront it head-on. This will effectively clone ANY element, including OBJECTs.
var theElement = $(YOUR-SELECTOR-HERE).wrap('<div></div>').parent().html(); $(YOUR-SELECTOR-HERE).parent().replaceWith(theElement);
"theElement", in this case, is a carbon copy of your OBJECT element's code, do with it what you will (except clone ;). The second line "unwraps" the original OBJECT.
A caveat: This will not clone event listeners (unless they are as attributes), but I doubt you have events attached to a media object, so no biggie. In any case, you can manually re-attach them if necessary.
Brian B, Head of Frontend Development, 360i LLC
comment:4 Changed 14 years ago by
Component: | ui → core |
---|---|
Milestone: | 1.2.4 → 1.3.2 |
Resolution: | → fixed |
Status: | assigned → closed |
Version: | 1.2.3 → 1.3.1 |
Fixed in SVN rev [6186].
Any updates on this? There was just another ticket opened for the same issue http://dev.jquery.com/ticket/3289.
The following is a simple example, which throws an error in IE6 & 7: