Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented May 6, 2019

Summary

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.

Ref gh-4384
Ref gh-4385

+9 bytes. I tested it in IE this time.

Checklist

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.

Ref jquerygh-4384
Ref jquerygh-4385
@mgol mgol force-pushed the contents-object-ie branch from b6e8242 to 68df62f Compare May 6, 2019 20:40
@mgol
Copy link
Member Author

mgol commented May 6, 2019

+9 bytes, not +13. I forgot we use Object.getPrototypeOf via a var-module, fixed.

Copy link
Member

@dmethvin dmethvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

patocallaghan added a commit to intercom/jquery that referenced this pull request May 7, 2019
patocallaghan added a commit to intercom/jquery that referenced this pull request May 7, 2019
@mgol
Copy link
Member Author

mgol commented May 8, 2019

This unbreaks master & I have other things to land so I'll merge it.

@mgol mgol removed the Needs review label May 8, 2019
@mgol mgol merged commit ccbd6b9 into jquery:master May 8, 2019
@mgol mgol deleted the contents-object-ie branch May 8, 2019 08:12
mgol added a commit that referenced this pull request May 8, 2019
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 ccbd6b9)

Closes gh-4390
Ref gh-4384
Ref gh-4385
@lock lock bot locked as resolved and limited conversation to collaborators Nov 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

2 participants