Fix #14180. Allow cross-frame use of focusin/out. Close gh-1369.

(cherry picked from commit 6d5dfa0eda2c19e8838930fafff83b596654eca2)
Manually edited for conflicts.
This commit is contained in:
Dave Methvin
2013-09-17 18:51:54 -04:00
parent aa70819598
commit bba8366af4
3 changed files with 59 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
<!doctype html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>focusin event cross-frame (#14180)</title>
<script src="../../jquery.js"></script>
</head>
<body>
<input type="text" id="frame-input" />
<script>
// Call parent when this frame is fully loaded, it will mess with #frame-input
jQuery( window ).one( "load", function() {
window.parent.iframeCallback( document );
});
</script>
</body>
</html>