Skip to main content

Search and Top Navigation

#10901 closed bug (cantfix)

Opened January 29, 2015 02:21PM UTC

Closed January 29, 2015 02:26PM UTC

JQuery UI Sortable and Inline Script Tags

Reported by: michaelhodgejr Owned by:
Priority: minor Milestone: none
Component: ui.sortable Version: 1.11.2
Keywords: Cc:
Blocked by: Blocking:
Description

JsFiddle: http://jsfiddle.net/UAcC7/1291/

JQuery v1.1.1

JQuery UI: 1.11.2

I'm using the jQuery UI Sortable library to sort li items. I'm running into a bug where if I try to sort an item that contains a script tag that modifies the DOM then when that element is sorted, it removes the content.

To reproduce, click on the JS Fiddle. If you move "Item 2" above the CNN embed widget, then it works just fine.

Move the CNN widget however and you find that the content disappears. I'm not sure if this is a bug with Sortable or if I'm missing a step to prevent this from occurring.

Attachments (0)
Change History (1)

Changed January 29, 2015 02:26PM UTC by scottgonzalez comment:1

resolution: → cantfix
status: newclosed

This is going to break no matter what jQuery UI does. See http://jsfiddle.net/UAcC7/1293/