-
Notifications
You must be signed in to change notification settings - Fork 794
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
empty-table-header virtualised rule should run without requiring role #3788
Comments
@WilcoFiers - as I was looking at this tonight, I see we actually already have this test as part of my original PR, but our expectation was that it incompletes: it('should incomplete when children are missing', function () {
var thNode = new axe.SerialVirtualNode({
nodeName: 'th'
});
thNode.children = [];
var results = axe.runVirtualRule('empty-table-header', thNode);
assert.lengthOf(results.passes, 0);
assert.lengthOf(results.violations, 0);
assert.lengthOf(results.incomplete, 1);
}); Note: existing test is has The test was based on a suggestion from Steve:
TTBOMK, the empty object vs |
We dug into this. The reason this test is not failing is due to the role algorithm looking up the parent tree of the The fix is to not throw on that line if we don't have an Looking at this we also discovered that the |
Validated with the latest code base, axe-core develop branch:
|
This test needs to be added, and needs to pass.
The text was updated successfully, but these errors were encountered: