Skip to main content

Bug Tracker

Side navigation

#4442 closed bug (worksforme)

Opened March 28, 2009 04:39PM UTC

Closed October 09, 2010 03:11AM UTC

Cannot insert <object>...</object> in ie with the html() method.

Reported by: saji Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: ie, <object>, object tag, html, insert Cc:
Blocked by: Blocking:
Description

Can't use the .html() method to insert an <object> html fragment.

Example.

$('selector').html('<object>other relevant stuff</object>');

Attachments (0)
Change History (1)

Changed October 09, 2010 03:11AM UTC by addyosmani comment:1

resolution: → worksforme
status: newclosed

I replicated the original code here: http://jsfiddle.net/addyosmani/Q8juM/ and tested in IE6, IE7 and IE8. All browsers were able to render the text and object wraparound tags correctly without any issues using both jQuery 1.3.2 and 1.4.2

Closing as this works for me.