When using .html() to retrieve html containing an object which contains param tags, the latter will be stripped in IE8, returning an empty object element. Here is a jsfiddle that proves this issue: http://jsfiddle.net/L9rra/1/.
Update: I would like to know how to fix this issue.
I think that you see some kind of race condition. In IE I see the object code with all params all the time, but in Firefox I get a div tag with a lot of inline styles instead of the object half the time.
You are binding the
readyevent from theloadevent, so the code will not actually run when thereadyevent occurs, but when theloadevent occurs. Just use thereadyevent that jsfiddle provides. This always shows the object code with all the params when I test it:http://jsfiddle.net/Guffa/L9rra/3/