Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge 15 fix for closest.getAttribute #4763

Merged
merged 1 commit into from
Dec 4, 2017
Merged

Conversation

emkayy
Copy link
Contributor

@emkayy emkayy commented Nov 22, 2017

Description

If the HTML element doesn't have a lang attribute, Edge throws an exception when calling closest.getAttribute because tag.closest('[lang]') returns an empty object (which will be coerced to true) instead of null.

Specific Changes proposed

Just test for getAttribute on closest.

Requirements Checklist

  • [x ] Bug fixed

If the HTML element doesn't have a lang attribute, Edge throws an exception when calling closest.getAttribute because tag.closest('[lang]') returns an empty object (which will be coerced to true) instead of null.
@emkayy emkayy changed the title Edge fix for closest.getAttribute Edge 15 fix for closest.getAttribute Nov 22, 2017
Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

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

Sounds good to me.

@gkatsev gkatsev added needs: LGTM Needs one or more additional approvals patch This PR can be added to a patch release. labels Dec 4, 2017
@misteroneill misteroneill added confirmed and removed needs: LGTM Needs one or more additional approvals labels Dec 4, 2017
@gkatsev gkatsev merged commit 0f1b260 into videojs:master Dec 4, 2017
@gkatsev
Copy link
Member

gkatsev commented Dec 4, 2017

Looks like it's fixed in Edge 16, but we can pull it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed patch This PR can be added to a patch release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants