Opened 10 years ago
Closed 10 years ago
#13947 closed bug (duplicate)
clone() function shows a warning in IE8
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In IE8 a security warning is shown when cloning a HTML including a LINK tag in HEAD with a relative path.
The example below shows the warning (it has to be used inside an HTTPS connection):
<html> <head>
<script type="text/javascript" src="/path/to/resources/jquery-1.8.3.js"></script> <link href="/path/to/resources/resource.css" rel="stylesheet" type="text/css"/>
</head> <body> TEST <a href="#" class="test">Clone HTML</a> <script>
$(".test").click(function() {
var newPage = $("html").clone();
});
</script> </body> </html>
I've tested it with jquery 1.10.0 with same results.
The code works properly in IE9, FF, Chrome and Safari...
Duplicate of #6587.
Old IE is very picky about content manipulated when it's not connected to a document, and when that document is secure. There doesn't seem to be much we can do about it.