HTML5 doesn't require the href attribute on links, but our tests fail since the code checks if the tabIndex is set using strict inequality:
New tests that need to be added to check for this:
describe('placeholder links without href', () => {
it('does not warn', () => {
doNotExpectWarning(assertions.tags.a.HASH_HREF_NEEDS_BUTTON.msg, () => {
<a class="foo" />;
});
});
});
describe('placeholder links without tabindex', () => {
it('does not warn', () => {
doNotExpectWarning(assertions.tags.a.TABINDEX_NEEDS_BUTTON.msg, () => {
<a class="foo" />;
});
});
});
HTML5 doesn't require the href attribute on links, but our tests fail since the code checks if the tabIndex is set using strict inequality:
New tests that need to be added to check for this: