Ticket #3979 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

Sortable connectWith fails

Reported by: Marc Diethelm Owned by: scott.gonzalez
Priority: blocker Milestone: 1.7
Component: ui.sortable Version: 1.6rc6
Keywords: sortable, connectWith Cc: boo@…
Blocking: Blocked by:

Description

Connecting one sortable to another fails with following error (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5):

[Exception... "'Syntax error, unrecognized expression: #' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

Tested with latest (trunk). attaching testcase

Attachments

sortable.connectWith.html Download (1.5 KB) - added by Marc Diethelm 5 years ago.
Testcase

Change History

comment:1 Changed 5 years ago by rdworth

  • Priority changed from critical to blocker
  • Version set to 1.6rc6
  • Milestone changed from TBD to 1.6

comment:2 Changed 5 years ago by scott.gonzalez

  • Owner set to scott.gonzalez
  • Status changed from new to assigned

comment:3 Changed 5 years ago by scott.gonzalez

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in r1936.

comment:4 Changed 5 years ago by Marc Diethelm

I'm sad to report I'm still seing an error here:

[Exception... "'Syntax error, unrecognized expression: #' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

comment:5 Changed 5 years ago by Marc Diethelm

In Fx 3.1b2 the error is different: "uncaught exception: Syntax error, unrecognized expression: #"

comment:6 Changed 5 years ago by Marc Diethelm

Ok, when the connectWith selector is wrapped in an array the error disappears. This effectively fixes the problem but really needs to be documented.

Changed 5 years ago by Marc Diethelm

Testcase

comment:7 Changed 5 years ago by scott.gonzalez

This is fixed. I'm not sure how view.jquery.com gets updated, but these files are not current. You should test against  http://jquery-ui.googlecode.com/svn/trunk.

Note: See TracTickets for help on using tickets.