]> 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)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 8 May 2019 09:08:14 +0000 (11:08 +0200)
commit90f78b9aab9c99ff3ffcccb1db602670e9707fa0
tree392e9177fc5a2aceb308670d91bfe05cf7d85fac
parent42badf34607092fd754a18f5b71e9b08457f982a
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.

(cherry-picked from ccbd6b93424cbdbf86f07a86c2e55cbab497d7a3)

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