-
-
Notifications
You must be signed in to change notification settings - Fork 252
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 issues with IE11 #276
Fix issues with IE11 #276
Conversation
@@ -22,8 +22,8 @@ export default function fillIn(target, text) { | |||
if (!element) { | |||
throw new Error(`Element not found when calling \`fillIn('${target}')\`.`); | |||
} | |||
|
|||
if (!isFormControl(element) && !element.isContentEditable) { | |||
let isControl = isFormControl(element); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out that isContentEditable
is true for input
elements in IE. I did this fix but maybe we have to go back to check if the element has a contenteditable=true
attribute
tests/dummy/config/targets.js
Outdated
@@ -1,5 +1,5 @@ | |||
/* eslint-env node */ | |||
const browsers = ['last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions']; | |||
const browsers = ['ie 11', 'last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably revert this change (to test locally you can use CI=true ember test --server
or CI=true ember s -p 0
)...
@@ -0,0 +1 @@ | |||
export default !window.ActiveXObject && 'ActiveXObject' in window; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! 👍 I think we should add a comment explaining what it does.
Something like:
// `window.ActiveXObject` returns undefined in IE11 (as well as non-IE browsers)
// whereas `"ActiveXObject" in window` returns `true` in all IE versions
// only IE11 will pass _both_ of these conditions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😨
Fixes linting (to pass CI).
Replace usage of `document.contains` with `document.body.contains` (only elements get `.contains`).
Now great. Now I need an IE10 vm |
Great work here @cibernox! Thank you! |
I think there is still 2 failing tests, but I'm out for the day.