Skip to main content

Search and Top Navigation

#7872 closed bug (notabug)

Opened November 11, 2011 06:02PM UTC

Closed November 12, 2011 12:45PM UTC

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

Attachments (0)
Change History (3)

Changed November 12, 2011 12:34PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

I'm not seeing any problems.

Changed November 12, 2011 12:36PM UTC by scottgonzalez comment:2

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

Changed November 12, 2011 12:45PM UTC by scottgonzalez comment:3

resolution: → invalid
status: reopenedclosed

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