--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: input.jsx --- # Input ```jsx // invalid <> Foo ; // valid <> ; ``` # Diagnostics ``` input.jsx:3:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide a text alternative through the alt, aria-label or aria-labelledby attribute 1 │ // invalid 2 │ <> > 3 │ │ ^^^^^^^^^^^^^^^^^^^^^^ 4 │ 5 │ i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page. ``` ``` input.jsx:4:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide a text alternative through the alt, aria-label or aria-labelledby attribute 2 │ <> 3 │ > 4 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ 5 │ 6 │ Foo i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page. ``` ``` input.jsx:5:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide a text alternative through the alt, aria-label or aria-labelledby attribute 3 │ 4 │ > 5 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 │ Foo 7 │ i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page. ``` ``` input.jsx:6:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide a text alternative through the alt, aria-label or aria-labelledby attribute 4 │ 5 │ > 6 │ Foo │ ^^^^^^^^^^^^^^^^^^^^ 7 │ 8 │ i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page. ``` ``` input.jsx:7:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide a text alternative through the alt, aria-label or aria-labelledby attribute 5 │ 6 │ Foo > 7 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 │ 9 │ i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page. ``` ``` input.jsx:8:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide a text alternative through the alt, aria-label or aria-labelledby attribute 6 │ Foo 7 │ > 8 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 │ 10 │ i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page. ``` ``` input.jsx:9:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide a text alternative through the alt, aria-label or aria-labelledby attribute 7 │ 8 │ > 9 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 │ 11 │ i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page. ``` ``` input.jsx:10:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide a text alternative through the alt, aria-label or aria-labelledby attribute 8 │ 9 │ > 10 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11 │ 12 │ ; i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page. ``` ``` input.jsx:11:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Provide a text alternative through the alt, aria-label or aria-labelledby attribute 9 │ 10 │ > 11 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12 │ ; 13 │ i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page. ```