-
Notifications
You must be signed in to change notification settings - Fork 791
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
Bunch of fixes for IE and Edge #577
Conversation
Wilco Fiers seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
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.
I'll test out the last case today on my Windows machine.
lib/commons/text/index.js
Outdated
|
||
var text = commons.text = {}; | ||
// These defaults are only available in IE and Edge | ||
const input = document.createElement('input'); |
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.
Should we remove the input after commons.text
is done with it to clear up memory?
// IE inserts this for us, thanks! | ||
assert.equal(axe.commons.text.accessibleTextVirtual(target), target.value || 'Submit'); | ||
assert.equal(axe.commons.text.accessibleTextVirtual(target), target.actualNode.value || 'Submit'); |
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.
I'm surprised that worked elsewhere without actualNode
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's undefined
, so the ||
ensures it's always Submit
.
…ples/shadow-dom (dequelabs#577) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This fixed all but one issue with IE and Edge. The one issue still open is a color-contrast one, for some reason overlap wasn't getting caught in IE, if the element existed below the fold.