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

Fix for prefix detection on IE #170

Closed
wants to merge 1 commit into from
Closed

Conversation

asppsa
Copy link

@asppsa asppsa commented Mar 10, 2017

This is a proposed solution for #164. The issue there is that x-tag looks for an ms prefix in window, but won't find one there in IE11. On that browser (and presumably IE10 too) it needs to instead look in window's prototype.

I've tested this by running the specs on Firefox, Chrome, IE11 and Edge, but not IE<11. The patch uses Object.getPrototypeOf(), which should be available on IE9+ according to caniuse.

I get that this code also needs to work on lots of browsers that I don't have access to, so I've tried to keep the logic similar to what was already there. I did however add a match on /,(webkit)/ before /,(O)/ ...

Happy to iterate on this if you have any feedback.

IE11 doesn't have any ms-prefixed own-properties in window, so it is
necessary to look in window's prototype.
@asppsa asppsa closed this Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant