diff options
author | Pat O'Callaghan <patocallaghan@gmail.com> | 2019-05-06 18:23:00 +0100 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-05-06 19:23:00 +0200 |
commit | 4d865d96aa5aae91823c50020b5c19da79566811 (patch) | |
tree | 1a0dcf5ad6c982c25f4e2dacca140f27a257b80b /src/traversing.js | |
parent | 110802c7f22b677ef658963aa95ebdf5cb9c5573 (diff) | |
download | jquery-4d865d96aa5aae91823c50020b5c19da79566811.tar.gz jquery-4d865d96aa5aae91823c50020b5c19da79566811.zip |
Traversing: Fix `contents()` on `<object>`s with children
Fixes gh-4384
Closes gh-4385
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traversing.js b/src/traversing.js index 18b964a49..a91183b28 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -145,7 +145,7 @@ jQuery.each( { return siblings( elem.firstChild ); }, contents: function( elem ) { - if ( typeof elem.contentDocument !== "undefined" ) { + if ( elem.contentDocument != null ) { return elem.contentDocument; } |