Bug Tracker

Modify

Ticket #4442 (closed bug: worksforme)

Opened 4 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

Description

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

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

Change History

comment:1 Changed 3 years ago by addyosmani

  • Status changed from new to closed
  • Resolution set to worksforme

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.