dequelabs / dequelabs/axe-core

Bug: Virtual rule empty-table-header should pass with a table role if none

Open
#3,817 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 13h
Merged PRs (30d)
29

Description

This failing the needs to be added and resolved:

```
it('should pass with a table of role none', function () {
var table = new axe.SerialVirtualNode({
nodeName: 'table',
attributes: {
role: 'none'
}
});

var tr = new axe.SerialVirtualNode({
nodeName: 'tr',
});

var th = new axe.SerialVirtualNode({
nodeName: 'th',
});

tr.children = [th];
tr.parent = table;
th.parent = tr;
th.children = [];
table.children = [tr];

var results = axe.runVirtualRule('empty-table-header', table);

assert.lengthOf(results.passes, 1);
assert.lengthOf(results.violations, 0);
assert.lengthOf(results.incomplete, 0);
});
```

__Originally posted by @dbowling in https://github.com/dequelabs/axe-core/pull/3801#discussion_r1041268076__

Contributor guide

Open the contributing guide

Research direction

Start with the empty-table-header virtual rule and the supplied runVirtualRule test case. Add the shown table-role-none scenario, then run the relevant virtual-rule tests; done means it reports one pass with no violations or incomplete results.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
accessibility, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.