Bug Tracker

Modify

Ticket #3734 (closed bug: worksforme)

Opened 4 years ago

Last modified 3 years ago

Bug in function append with iframe in ie7

Reported by: LosGardos Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: append Cc:
Blocking: Blocked by:

Description

I have this code with iframe

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01 TransitionalEN"> <html>

<head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="generator" content="PSPad editor, www.pspad.com"> <script type="text/javascript" src=" http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> <title></title> </head> <body>

<div></div> <iframe id='okno' src='iframeUrl'></iframe>

</body>

</html>

and this is page code in this iframe

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01 TransitionalEN"> <html>

<head> <meta http-equiv="content-type" content="text/html; charset=windows-1250"> <meta name="generator" content="PSPad editor, www.pspad.com"> <script type="text/javascript" src=" http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> <title></title> </head> <body>

ahoj <script type='text/javascript'>

var el; var el2; $(document).ready(function(e){

el = top.$('div'); el2 = $('<b>ahoj</b>');

});

</script> <input type="button" value="click" onclick="el.append(el2)">

</body>

</html>

When click on button in ie7 i getting error. In FF3 and Opera 9 this working.

Attachments

main-3734.html Download (447 bytes) - added by dmethvin 3 years ago.
main file
frame-3734.html Download (591 bytes) - added by dmethvin 3 years ago.
framed file

Change History

comment:1 Changed 4 years ago by flesler

  • Owner flesler deleted
  • Component changed from unfilled to core

comment:2 Changed 3 years ago by dmethvin

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

This worked for me in IE8 and jQuery 1.4.2, test files attached.

Changed 3 years ago by dmethvin

main file

Changed 3 years ago by dmethvin

framed file

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.