Ticket #8413 (closed bug: invalid)
function replaceWith() bug on Internet Explorer 7&8
|Reported by:||homer8173||Owned by:||homer8173|
find a limitation to replaceWith() on non existing elements with IE 7&8. not tested on other IE, sorry.
the fix we found was to test element size to determinate if exist
For firefox we use :
$("My selector").replaceWith("My new content")
For IE we patched :
if ($("My selector").length>0) $("My selector").replaceWith("My new content");
here is the thread in your forum : http://forum.jquery.com/topic/ie-replacewith-issue
Perhaps you will not consider this as bug... let me know. Anyway, thanks for your job.
- Owner set to homer8173
- Status changed from new to pending
- Status changed from pending to new
- Component changed from unfiled to manipulation