Opened 8 years ago

Closed 8 years ago

#7872 closed bug (notabug)

Error loading Scripts when there is an IFrame in the Page

Reported by: tmcconechy Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.core Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:

Description

Hi All,

The following html when loaded in IE8 will give an error:

SCRIPT438: Object doesn't support property or method 'appendChild' jquery.ui.core.js, line 226 character 3

<!DOCTYPE html>
<html>
<head>
	<title>My Page</title>
	<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="jquery.ui.core.js"></script>
</head>
<body>
	<iframe id="body" name="body" class="bodyFrame" ></iframe>
</body>
</html>

This occurs immediately as the scripts load. I've isolated it for you to the core...Happens around this line:

// support
$(function() {
	var body = document.body,
		div = body.appendChild( div = document.createElement( "div" ) );

Thanks

Change History (3)

comment:1 Changed 8 years ago by Scott González

Resolution: worksforme
Status: newclosed

I'm not seeing any problems.

comment:2 Changed 8 years ago by Scott González

Resolution: worksforme
Status: closedreopened
Summary: Error loading Scripts on IE8 when there is an IFrame in the PageError loading Scripts when there is an IFrame in the Page

comment:3 Changed 8 years ago by Scott González

Resolution: invalid
Status: reopenedclosed

You can't have an element with the name of body. This will break lots of code.

Note: See TracTickets for help on using tickets.