|
1 | 1 | /*! |
2 | | - * jQuery JavaScript Library v1.12.3 |
| 2 | + * jQuery JavaScript Library v1.12.4 |
3 | 3 | * http://jquery.com/ |
4 | 4 | * |
5 | 5 | * Includes Sizzle.js |
|
9 | 9 | * Released under the MIT license |
10 | 10 | * http://jquery.org/license |
11 | 11 | * |
12 | | - * Date: 2016-04-05T19:16Z |
| 12 | + * Date: 2016-05-20T17:17Z |
13 | 13 | */ |
14 | 14 |
|
15 | 15 | (function( global, factory ) { |
@@ -65,7 +65,7 @@ var support = {}; |
65 | 65 |
|
66 | 66 |
|
67 | 67 | var |
68 | | - version = "1.12.3", |
| 68 | + version = "1.12.4", |
69 | 69 |
|
70 | 70 | // Define a local copy of jQuery |
71 | 71 | jQuery = function( selector, context ) { |
@@ -6672,6 +6672,7 @@ var documentElement = document.documentElement; |
6672 | 6672 | if ( reliableHiddenOffsetsVal ) { |
6673 | 6673 | div.style.display = ""; |
6674 | 6674 | div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>"; |
| 6675 | + div.childNodes[ 0 ].style.borderCollapse = "separate"; |
6675 | 6676 | contents = div.getElementsByTagName( "td" ); |
6676 | 6677 | contents[ 0 ].style.cssText = "margin:0;border:0;padding:0;display:none"; |
6677 | 6678 | reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0; |
@@ -6996,19 +6997,6 @@ function getWidthOrHeight( elem, name, extra ) { |
6996 | 6997 | isBorderBox = support.boxSizing && |
6997 | 6998 | jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; |
6998 | 6999 |
|
6999 | | - // Support: IE11 only |
7000 | | - // In IE 11 fullscreen elements inside of an iframe have |
7001 | | - // 100x too small dimensions (gh-1764). |
7002 | | - if ( document.msFullscreenElement && window.top !== window ) { |
7003 | | - |
7004 | | - // Support: IE11 only |
7005 | | - // Running getBoundingClientRect on a disconnected node |
7006 | | - // in IE throws an error. |
7007 | | - if ( elem.getClientRects().length ) { |
7008 | | - val = Math.round( elem.getBoundingClientRect()[ name ] * 100 ); |
7009 | | - } |
7010 | | - } |
7011 | | - |
7012 | 7000 | // some non-html elements return undefined for offsetWidth, so check for null/undefined |
7013 | 7001 | // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 |
7014 | 7002 | // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 |
@@ -9999,6 +9987,11 @@ function getDisplay( elem ) { |
9999 | 9987 | } |
10000 | 9988 |
|
10001 | 9989 | function filterHidden( elem ) { |
| 9990 | + |
| 9991 | + // Disconnected elements are considered hidden |
| 9992 | + if ( !jQuery.contains( elem.ownerDocument || document, elem ) ) { |
| 9993 | + return true; |
| 9994 | + } |
10002 | 9995 | while ( elem && elem.nodeType === 1 ) { |
10003 | 9996 | if ( getDisplay( elem ) === "none" || elem.type === "hidden" ) { |
10004 | 9997 | return true; |
|
0 commit comments