The following function fails when running on IE 6 or IE 7, works fine on FF
curContext = $('#mPreviewFrame')[0].contentWindow.document;
$('#mydiv',curContext).wrap('<div id="myNewOuterDiv"></div>');
To isolate the problem I changed the 'curContext' to a div on the
current page and tested, and that works fine in IE, so it appears to
be
specifically releated to using a frame as the context.
Does anyone know another way this could be written to achieve the same
result? Is this a bug?
Thanks!!

