]> source.dussan.org Git - jquery.git/commit
Traversing: Fix `contents()` on `<object>`s with children in IE
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 8 May 2019 08:12:36 +0000 (10:12 +0200)
committerGitHub <noreply@github.com>
Wed, 8 May 2019 08:12:36 +0000 (10:12 +0200)
commitccbd6b93424cbdbf86f07a86c2e55cbab497d7a3
treed5a0c94b0bd71dded4750873dc9d0491ecc177a1
parent4d865d96aa5aae91823c50020b5c19da79566811
Traversing: Fix `contents()` on `<object>`s with children in IE

The original fix didn't account for the fact that in IE `<object>` elements
with no `data` attribute have an object `contentDocument`. The fix leverages
the fact that this special object has a null prototype.

Closes gh-4390
Ref gh-4384
Ref gh-4385
src/traversing.js