cloneNode(true) doesn't works properly for <IFRAME> in IE7

D

Dmitry Kulinich

Guys! Could you give any advice please?

1.I've found that cloneNode(true) doesn't works properly when we have childNodes of <IFRAME> - they are not copied at all

eg:
<IFRAME id="oFrame" >
<FORM action="RasteriserServlet?" childName="form" method="Post" name="form453">
<INPUT name="value" type="hidden">
<INPUT name="bgColor" type="hidden">
<INPUT name="fgColor" type="hidden">
<INPUT name="width" type="hidden">
<INPUT name="height" type="hidden">
</FORM>
</IFRAME>

cloneNode returns
<IFRAME id="oFrame" >
</IFRAME>

2. Then I've decided to insert abscent childNodes manually after cloneNode,
but in line that colored in red I've got error "Permission denied"
function myCloneNode(node) {
for (var i = 0; i < node.childNodes.length;i++) {
if (node.childNodes.tagName == 'IFRAME') {
var abscentChildNode = node.childNodes(i).childNodes(0);
......
}}}

Thank you,
De Cool,
EPE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top