Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Fix ARIA tablist and ARIA tab scope #207

Merged
merged 4 commits into from
Jul 31, 2015

Conversation

ricksbrown
Copy link
Collaborator

Closes #204
The required context role for tab ended up on tablist instead.

This motivates me to get onto #105

@ricksbrown
Copy link
Collaborator Author

@alice PTAL

var fixture = document.getElementById('qunit-fixture');
var expected = [];
for (var i = 0; i < 4; i++) {
var item = fixture.appendChild(document.createElement('span'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this test use spans where the previous uses a list? Would this test pass if a list was used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was just to save one line - this test doesn't need a container, the spans are added directly to the fixture. It didn't feel right to add a bunch of li elements without a ul or ol.

I can change it to list if you prefer - the test will still work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can be bothered, I think it would help avoid future confusion, but 👍 either way.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok no problem - will make that change then merge it.

@alice
Copy link
Contributor

alice commented Jul 31, 2015

👍 modulo test weirdness

ricksbrown added a commit that referenced this pull request Jul 31, 2015
Fix ARIA tablist and ARIA tab scope
@ricksbrown ricksbrown merged commit 64a8547 into GoogleChrome:master Jul 31, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants