Opened 11 years ago
Closed 11 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 11 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 11 years ago by
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 |
comment:3 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
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.
I'm not seeing any problems.