Skip to main content

Bug Tracker

Side navigation

#4597 closed bug (wontfix)

Opened April 27, 2009 06:29PM UTC

Closed June 12, 2010 06:48PM UTC

Last modified March 15, 2012 02:16PM UTC

Fail to append, prepend on IFrame Body element in IE

Reported by: awdhes Owned by:
Priority: major Milestone: 1.4
Component: manipulation Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

While i am trying to append an element inside the body of IFrame throwing error invalid argument


// ref of table exist in Iframe

var tblGrid = $('#iframe').contents().find('#tblGrid')

var tblrow = $('<tr>');

tblrow.append('<td> First col</td>');


The last line is not working but if i am trying with string instead of html object is working


var tblrow="<tr> <td> First child</td></tr>";


// this is working

could you plz let me know the reson

Attachments (0)
Change History (1)

Changed June 12, 2010 06:48PM UTC by dmethvin comment:1

component: unfiledmanipulation
resolution: → wontfix
status: newclosed

Unfortunately this is a limitation with IE. Elements created in one document (the original document, where the $("<tr>") was created) cannot be appended to another document (the iframe). You could specify a reference to the iframe as the second (context) argument to $(), but usually the safest thing to do is what you already found, which is to use html strings.