Dialog Creation Issue with some selectors

Dialog Creation Issue with some selectors

Hi,

I have a html application has a list of divs, each with a very specific id representing an external object.

Within each div I have a set number of objects, so to find these using jquery selectors I have successfully been using id followed by the class name like this

$(#specific_id .classname).whatever

This works but not for dialogs. See below the jsfiddle which is basically the jquery ui dialog sample code, modified to show the issue I am having.

http://jsfiddle.net/LcsAL/

Should this work, ie is it a bug that the dialog doesn't work in this case when I'm using a selector thats not a very simple id? I have found many workarounds for this and lots of them do work but I want to know from a jquery bug point of view, are dialogs not supported in being created in this way or should they work?

Regards,
Mark