-
Notifications
You must be signed in to change notification settings - Fork 781
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: Ignore hashbang URLs for skiplinks #827
Conversation
Looks like there are some failing tests we'll need to resolve. |
@@ -9,7 +9,7 @@ describe('internal-link-present', function () { | |||
|
|||
afterEach(function () { | |||
fixture.innerHTML = ''; | |||
axe._tree = undefined; | |||
axe._tree = undefined; |
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.
Sidenote: should we move this axe._tree
thing to the checkContext.reset()
method?
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 think we're better off not storing the flat tree as a global.
}); | ||
|
||
it('should return false when a hash route URL was used', function () { | ||
var params = checkSetup('<div id="target"><a href="#/home">hi</a></div>'); |
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'd like to see one more test case to mimic OP's issue: href="#!/contact-us"
2cc3e02
to
1dc0d64
Compare
1dc0d64
to
787b3ba
Compare
Closes #824