--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx <>
> ``` # Diagnostics ``` invalid.jsx:2:7 lint/a11y/noHeaderScope FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid using the scope attribute on elements other than th elements. 1 │ <> > 2 │ │ ^^^^^^^^^^^^^ 3 │ 4 │ i The scope attribute is used to associate a data cell with its corresponding header cell in a data table, so it should be placed on th elements to provide accessibility to screen readers. i Follow the links for more information, WCAG 1.3.1 WCAG 4.1.1 i Unsafe fix: Remove the scope attribute. 2 │ → │ -------------- ``` ``` invalid.jsx:3:7 lint/a11y/noHeaderScope FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid using the scope attribute on elements other than th elements. 1 │ <> 2 │ > 3 │ │ ^^^^^^^^^^^^^ 4 │ 5 │ i The scope attribute is used to associate a data cell with its corresponding header cell in a data table, so it should be placed on th elements to provide accessibility to screen readers. i Follow the links for more information, WCAG 1.3.1 WCAG 4.1.1 i Unsafe fix: Remove the scope attribute. 3 │ → │ ------------- ``` ``` invalid.jsx:4:7 lint/a11y/noHeaderScope FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid using the scope attribute on elements other than th elements. 2 │ 3 │ > 4 │ │ ^^^^^^^^^^^ 5 │ 6 │ i The scope attribute is used to associate a data cell with its corresponding header cell in a data table, so it should be placed on th elements to provide accessibility to screen readers. i Follow the links for more information, WCAG 1.3.1 WCAG 4.1.1 i Unsafe fix: Remove the scope attribute. 4 │ → │ ------------ ``` ``` invalid.jsx:5:7 lint/a11y/noHeaderScope FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid using the scope attribute on elements other than th elements. 3 │ 4 │ > 5 │ │ ^^^^^^^^^^^ 6 │ 7 │ > i The scope attribute is used to associate a data cell with its corresponding header cell in a data table, so it should be placed on th elements to provide accessibility to screen readers. i Follow the links for more information, WCAG 1.3.1 WCAG 4.1.1 i Unsafe fix: Remove the scope attribute. 5 │ → │ ----------- ``` ``` invalid.jsx:6:7 lint/a11y/noHeaderScope FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid using the scope attribute on elements other than th elements. 4 │ 5 │ > 6 │ │ ^^^^^ 7 │ > 8 │ i The scope attribute is used to associate a data cell with its corresponding header cell in a data table, so it should be placed on th elements to provide accessibility to screen readers. i Follow the links for more information, WCAG 1.3.1 WCAG 4.1.1 i Unsafe fix: Remove the scope attribute. 6 │ → │ ------ ```