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 comment:1
| resolution: | → worksforme |
|---|---|
| status: | new → closed |
Changed November 12, 2011 12:36PM UTC by comment:2
| resolution: | worksforme |
|---|---|
| status: | closed → reopened |
| summary: | Error loading Scripts on IE8 when there is an IFrame in the Page → Error loading Scripts when there is an IFrame in the Page |
Changed November 12, 2011 12:45PM UTC by comment:3
| resolution: | → invalid |
|---|---|
| status: | reopened → closed |
You can't have an element with the name of body. This will break lots of code.
I'm not seeing any problems.