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

ARIA tablist fails ariaRoleNotScoped audit #204

Closed
ricksbrown opened this issue Jul 27, 2015 · 0 comments
Closed

ARIA tablist fails ariaRoleNotScoped audit #204

ricksbrown opened this issue Jul 27, 2015 · 0 comments
Assignees

Comments

@ricksbrown
Copy link
Collaborator

tablist is not required to be contained within any other ARIA role but this test fails:

test('Scope role present - tablist', function() {
    var rule = axs.AuditRules.getRule('ariaRoleNotScoped');
    var fixture = document.getElementById('qunit-fixture');
    var container = fixture.appendChild(document.createElement('ul'));
    container.setAttribute('role', 'tablist');
    for (var i = 0; i < 4; i++) {
        var item = container.appendChild(document.createElement('li'));
        item.setAttribute('role', 'tab');
    }

    var actual = rule.run({ scope: fixture });
    equal(actual.result, axs.constants.AuditResult.PASS);
    deepEqual(actual.elements, []);
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant