-
Notifications
You must be signed in to change notification settings - Fork 779
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(valid-lang): run on aria-hidden text #3634
Conversation
'use strict'; | ||
|
||
var fixture = document.getElementById('fixture'); | ||
var shadowSupported = axe.testUtils.shadowSupport.v1; | ||
var isHiddenWithCSSFn = axe.commons.dom.isHiddenWithCSS; | ||
var isHiddenWithCSS = axe.commons.dom.isHiddenWithCSS; |
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 have no idea why we did this, but I thought it should be changed.
@@ -3,7 +3,7 @@ import getImplicitRole from './implicit-role'; | |||
import getRoleType from './get-role-type'; | |||
import isAriaRoleAllowedOnElement from './is-aria-role-allowed-on-element'; | |||
import { tokenList, isHtmlElement, getNodeFromTree } from '../../core/utils'; | |||
import AbstractVirtuaNode from '../../core/base/virtual-node/abstract-virtual-node'; | |||
import AbstractVirtualNode from '../../core/base/virtual-node/abstract-virtual-node'; |
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.
Unrelated, but I spotted this typo. Figured I might as well fix it.
@@ -10,11 +10,17 @@ | |||
<p xml:lang="en-US" lang="gibberish-US" id="fail3">Mix</p> | |||
<p lang=" " id="fail4">English</p> | |||
|
|||
<p lang="invalid" id="pass7"> <!-- ignore --> </p> | |||
<p lang="invalid" id="pass7"><!-- ignore --></p> |
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.
Hmm, wonder why prettier did that.... Not sure it matters?
037e030
to
315b2ec
Compare
Closes issue: #3633