[jQuery] .wrap when targeting a frame generates an error in IE

2009-07-10 Thread Gilson
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

[jQuery] .wrap when targeting a frame generates an error in IE

2007-10-15 Thread Brook Davies
I tested some code in IE7 today and ran into a strange problem with the jQuery .wrap method. I have narrowed it down to this function failing when targeting a frame like this: curContext = $('#mPreviewFrame')[0].contentWindow.document; $('#mydiv',curContext).wrap('div id=myNewOuterDiv/div');