Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | 1x 1x | // Invalid slot content
const invalidSlotContentOptions = [
{
type: 'Empty Slot',
html: ``,
},
{
type: 'Invalid Slot',
html: `
<div>button</div>
`,
},
{
type: 'Invalid Button',
html: `
<div class="button" aria-controls="content" tabindex="0">Content</div>
<div id="content" class="content">Content</div>
`,
},
{
type: 'No aria-controls',
html: `
<button type="button">Button</button>
<div id="content-2" class="content">Content</div>
`,
},
{
type: 'Invalid aria-controls',
html: `
<button type="button" aria-controls="content-1">Button</button>
<div id="content-2" class="content">Content</div>
`,
},
{
type: 'Multiple aria-controls',
html: `
<button type="button" aria-controls="content">Button</button>
<button type="button" aria-controls="content">Button</button>
<div id="" class="content">Content</div>
`,
},
{
type: 'No ID',
html: `
<button type="button" aria-controls="content">Button</button>
<div id="" class="content">Content</div>
`,
},
{
type: 'Invalid ID',
html: `
<button type="button" aria-controls="content">Button</button>
<div id="" class="content">Content</div>
`,
},
{
type: 'Multiple ID',
html: `
<button type="button" aria-controls="content">Button</button>
<div id="content" class="content">Content</div>
<div id="content" class="content">Content</div>
`,
},
];
export default invalidSlotContentOptions;
|