Bug Tracker

Opened 16 years ago

Closed 16 years ago

#1679 closed bug (fixed)

Sortable - this.parentNode has no properties on core.js

Reported by: ipalaus Owned by: paul
Priority: critical Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: core.js parentNode Opera Cc: ipalaus@…, daijo@…
Blocked by: Blocking:

Description

I had troubles while using Opera and ui.sortables.js recently. I had a list using <li> with a simple Sortable() and it worked fine on the two major browsers (Firefox, IE 6/7). Testing against Opera 9.23 it didn't work. Opera 9.5 alpha release "Kestrel" works fine. When I check on Firefox another time using Firebug i found that when you start moving some Sortable element the console is continuously adding errors and never stops with "this.parentNode has no properties" (line 1098 on core.js).

jQuery version: 1.2.1 and current version (svn) UI version: 1.0 and current version (svn)

Failed failed with both stable and SVN, jQuery and UI

You can check this on http://dev.jquery.com/view/trunk/plugins/ui/demos/ui.sortable.html

Attachments (1)

ui.sortable.patch (467 bytes) - added by swent 16 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 16 years ago by rworth

Component: coreui

comment:2 Changed 16 years ago by rworth

Summary: this.parentNode has no properties on core.jsSortable - this.parentNode has no properties on core.js

comment:3 Changed 16 years ago by krunkosaurus

I find something similar happens without the use of additional parameters.

I use Mac Firefox and am also experiencing the above - only able to move a list item once and then JS erros. I see the following infinite error in my Firebug console:

self.pos has no properties [Break on this error] position: { left: self.pos[0], top: self.pos[1] }, ui.sortable.js (line 91)

this.parentNode has no properties [Break on this error] this.parentNode.removeChild( this ); jquery.js (line 1075)

this.parentNode has no properties [Break on this error] null jquery.js (line 1075)

I get similar errors when using this sort method with my own list items and downloaded ui components. I am running the most recent version of jQ and ui components.

comment:4 Changed 16 years ago by paul

Owner: set to john

Changed 16 years ago by swent

Attachment: ui.sortable.patch added

comment:5 Changed 16 years ago by swent

I found a way to fix those errors (see ui.sortable.patch). I'm not sure, whether this fixes the root cause or just the symptom.

Hope this helps

--Swen

comment:6 Changed 16 years ago by john

Owner: changed from john to paul

comment:7 Changed 16 years ago by paul

Resolution: fixed
Status: newclosed

Thanks, fixed!

Note: See TracTickets for help on using tickets.