mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Core: Do not run window.onready when ready
Fixes #14802
(cherry picked from commit 2df1aad6a1)
This commit is contained in:
24
test/data/core/onready.html
Normal file
24
test/data/core/onready.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
||||
<title>alias-masked DOM properties (#14074)</title>
|
||||
<script>
|
||||
var error = false;
|
||||
window.onready = function() { error = "Called window.onready"; };
|
||||
</script>
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form>
|
||||
<input type="text" id="nodeName"/>
|
||||
</form>
|
||||
<script>
|
||||
jQuery(function() {
|
||||
setTimeout( function() {
|
||||
window.parent.iframeCallback( error );
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user