2012-05-04 13:57:32 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
|
|
<title>Test case for jQuery ticket #10067</title>
|
|
|
|
<script type="text/javascript">
|
|
|
|
if ( document.attachEvent ) {
|
|
|
|
// browsers that use the non-standard event API will load the iframe
|
|
|
|
// before jQuery, so there's no way to fire ready before the iframe loads
|
|
|
|
window.parent.iframeCallback( true );
|
|
|
|
} else {
|
|
|
|
setTimeout(function() {
|
|
|
|
el = document.createElement("script");
|
|
|
|
el.type = "text/javascript";
|
|
|
|
el.onload = function() {
|
|
|
|
jQuery( document ).ready(function() {
|
2012-05-04 17:31:35 +00:00
|
|
|
jQuery("body").append("<div>modifying DOM</div>");
|
2012-05-04 13:57:32 +00:00
|
|
|
window.parent.iframeCallback( true );
|
|
|
|
});
|
2012-05-18 17:28:50 +00:00
|
|
|
}
|
2012-05-04 13:57:32 +00:00
|
|
|
document.getElementsByTagName("head")[ 0 ].appendChild( el );
|
2012-06-04 16:48:18 +00:00
|
|
|
el.src = "/dist/jquery.js";
|
2012-05-04 13:57:32 +00:00
|
|
|
}, 1000 );
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<!-- long loading iframe -->
|
|
|
|
<iframe src="longLoad.php?sleep=15&return=false" style="width: 1px; height: 1px"></iframe>
|
|
|
|
</body>
|
2012-05-18 17:28:50 +00:00
|
|
|
</html>
|