--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx <> {null} {undefined} content content content content content ``` # Diagnostics ``` invalid.jsx:2:5 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 1 │ <> > 2 │ │ ^^^^^ 3 │ 4 │ i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ``` ``` invalid.jsx:3:3 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 1 │ <> 2 │ > 3 │ │ ^^^^^^^ 4 │ 5 │ {null} i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ``` ``` invalid.jsx:4:3 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 2 │ 3 │ > 4 │ │ ^^^^^^^^^^ 5 │ {null} 6 │ {undefined} i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ``` ``` invalid.jsx:5:3 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 3 │ 4 │ > 5 │ {null} │ ^^^^^^^^^^^^^ 6 │ {undefined} 7 │ content i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ``` ``` invalid.jsx:6:3 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 4 │ 5 │ {null} > 6 │ {undefined} │ ^^^^^^^^^^^^^^^^^^ 7 │ content 8 │ i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ``` ``` invalid.jsx:7:3 lint/a11y/useAnchorContent FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 5 │ {null} 6 │ {undefined} > 7 │ content │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 │ 9 │ content i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 i Unsafe fix: Remove the aria-hidden attribute to allow the anchor element and its content visible to assistive technologies. 7 │ → → content │ ----------- ``` ``` invalid.jsx:8:3 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 6 │ {undefined} 7 │ content > 8 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 │ content 10 │ content i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ``` ``` invalid.jsx:9:3 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 7 │ content 8 │ > 9 │ content │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 │ content 11 │ content i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ``` ``` invalid.jsx:10:3 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 8 │ 9 │ content > 10 │ content │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 │ content 12 │ content i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ``` ``` invalid.jsx:11:3 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 9 │ content 10 │ content > 11 │ content │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 │ content 13 │ i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ``` ``` invalid.jsx:12:3 lint/a11y/useAnchorContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide screen reader accessible content when using `a` elements. 10 │ content 11 │ content > 12 │ content │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 │ 14 │ i All links on a page should have content that is accessible to screen readers. i Accessible content refers to digital content that is designed and structured in a way that makes it easy for people with disabilities to access, understand, and interact with using assistive technologies. i Follow these links for more information, WCAG 2.4.4 WCAG 4.1.2 ```