--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; var a = ; ``` # Diagnostics ``` invalid.jsx:1:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the checkbox ARIA role does not have the required ARIA attributes. > 1 │ var a = ; │ ^^^^^^^^^^^^^^^ 2 │ var a = ; 3 │ var a = ; i Missing ARIA prop(s): - aria-checked ``` ``` invalid.jsx:2:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the switch ARIA role does not have the required ARIA attributes. 1 │ var a = ; > 2 │ var a = ; │ ^^^^^^^^^^^^^ 3 │ var a = ; 4 │ var a = ; i Missing ARIA prop(s): - aria-checked ``` ``` invalid.jsx:3:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the spinbutton ARIA role does not have the required ARIA attributes. 1 │ var a = ; 2 │ var a = ; > 3 │ var a = ; │ ^^^^^^^^^^^^^^^^^ 4 │ var a = ; 5 │ var a = ; i Missing ARIA prop(s): - aria-valuemax - aria-valuemin - aria-valuenow ``` ``` invalid.jsx:4:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the spinbutton ARIA role does not have the required ARIA attributes. 2 │ var a = ; 3 │ var a = ; > 4 │ var a = ; │ ^^^^^^^^^^^^^^^^^ 5 │ var a = ; 6 │ var a = ; i Missing ARIA prop(s): - aria-valuemin - aria-valuenow ``` ``` invalid.jsx:5:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the spinbutton ARIA role does not have the required ARIA attributes. 3 │ var a = ; 4 │ var a = ; > 5 │ var a = ; │ ^^^^^^^^^^^^^^^^^ 6 │ var a = ; 7 │ var a = ; i Missing ARIA prop(s): - aria-valuemax - aria-valuenow ``` ``` invalid.jsx:6:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the spinbutton ARIA role does not have the required ARIA attributes. 4 │ var a = ; 5 │ var a = ; > 6 │ var a = ; │ ^^^^^^^^^^^^^^^^^ 7 │ var a = ; 8 │ var a = ; i Missing ARIA prop(s): - aria-valuenow ``` ``` invalid.jsx:7:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the slider ARIA role does not have the required ARIA attributes. 5 │ var a = ; 6 │ var a = ; > 7 │ var a = ; │ ^^^^^^^^^^^^^ 8 │ var a = ; 9 │ var a = ; i Missing ARIA prop(s): - aria-valuemax - aria-valuenow ``` ``` invalid.jsx:8:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the slider ARIA role does not have the required ARIA attributes. 6 │ var a = ; 7 │ var a = ; > 8 │ var a = ; │ ^^^^^^^^^^^^^ 9 │ var a = ; 10 │ var a = ; i Missing ARIA prop(s): - aria-valuemin - aria-valuenow ``` ``` invalid.jsx:9:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the slider ARIA role does not have the required ARIA attributes. 7 │ var a = ; 8 │ var a = ; > 9 │ var a = ; │ ^^^^^^^^^^^^^ 10 │ var a = ; 11 │ var a = ; i Missing ARIA prop(s): - aria-valuenow ``` ``` invalid.jsx:10:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the separator ARIA role does not have the required ARIA attributes. 8 │ var a = ; 9 │ var a = ; > 10 │ var a = ; │ ^^^^^^^^^^^^^^^^ 11 │ var a = ; 12 │ var a = ; i Missing ARIA prop(s): - aria-valuemax - aria-valuenow ``` ``` invalid.jsx:11:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the separator ARIA role does not have the required ARIA attributes. 9 │ var a = ; 10 │ var a = ; > 11 │ var a = ; │ ^^^^^^^^^^^^^^^^ 12 │ var a = ; 13 │ var a = ; i Missing ARIA prop(s): - aria-valuemin - aria-valuenow ``` ``` invalid.jsx:12:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the separator ARIA role does not have the required ARIA attributes. 10 │ var a = ; 11 │ var a = ; > 12 │ var a = ; │ ^^^^^^^^^^^^^^^^ 13 │ var a = ; 14 │ var a = ; i Missing ARIA prop(s): - aria-valuenow ``` ``` invalid.jsx:13:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the scrollbar ARIA role does not have the required ARIA attributes. 11 │ var a = ; 12 │ var a = ; > 13 │ var a = ; │ ^^^^^^^^^^^^^^^^ 14 │ var a = ; 15 │ var a = ; i Missing ARIA prop(s): - aria-valuemax - aria-valuenow - aria-orientation - aria-controls ``` ``` invalid.jsx:14:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the scrollbar ARIA role does not have the required ARIA attributes. 12 │ var a = ; 13 │ var a = ; > 14 │ var a = ; │ ^^^^^^^^^^^^^^^^ 15 │ var a = ; 16 │ var a = ; i Missing ARIA prop(s): - aria-valuemin - aria-valuenow - aria-orientation - aria-controls ``` ``` invalid.jsx:15:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the scrollbar ARIA role does not have the required ARIA attributes. 13 │ var a = ; 14 │ var a = ; > 15 │ var a = ; │ ^^^^^^^^^^^^^^^^ 16 │ var a = ; 17 │ var a = ; i Missing ARIA prop(s): - aria-valuenow - aria-orientation - aria-controls ``` ``` invalid.jsx:16:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the scrollbar ARIA role does not have the required ARIA attributes. 14 │ var a = ; 15 │ var a = ; > 16 │ var a = ; │ ^^^^^^^^^^^^^^^^ 17 │ var a = ; 18 │ var a = ; i Missing ARIA prop(s): - aria-valuenow - aria-controls ``` ``` invalid.jsx:17:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the radio ARIA role does not have the required ARIA attributes. 15 │ var a = ; 16 │ var a = ; > 17 │ var a = ; │ ^^^^^^^^^^^^ 18 │ var a = ; 19 │ var a = ; i Missing ARIA prop(s): - aria-checked ``` ``` invalid.jsx:18:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the option ARIA role does not have the required ARIA attributes. 16 │ var a = ; 17 │ var a = ; > 18 │ var a = ; │ ^^^^^^^^^^^^^ 19 │ var a = ; 20 │ var a = ; i Missing ARIA prop(s): - aria-selected ``` ``` invalid.jsx:19:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the heading ARIA role does not have the required ARIA attributes. 17 │ var a = ; 18 │ var a = ; > 19 │ var a = ; │ ^^^^^^^^^^^^^^ 20 │ var a = ; 21 │ var a = ; i Missing ARIA prop(s): - aria-level ``` ``` invalid.jsx:20:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the combobox ARIA role does not have the required ARIA attributes. 18 │ var a = ; 19 │ var a = ; > 20 │ var a = ; │ ^^^^^^^^^^^^^^^ 21 │ var a = ; 22 │ var a = ; i Missing ARIA prop(s): - aria-controls - aria-expanded ``` ``` invalid.jsx:21:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the combobox ARIA role does not have the required ARIA attributes. 19 │ var a = ; 20 │ var a = ; > 21 │ var a = ; │ ^^^^^^^^^^^^^^^ 22 │ var a = ; 23 │ var a = ; i Missing ARIA prop(s): - aria-controls ``` ``` invalid.jsx:22:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the combobox ARIA role does not have the required ARIA attributes. 20 │ var a = ; 21 │ var a = ; > 22 │ var a = ; │ ^^^^^^^^^^^^^^^ 23 │ var a = ; 24 │ var a = ; i Missing ARIA prop(s): - aria-expanded ``` ``` invalid.jsx:23:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the menuitemcheckbox ARIA role does not have the required ARIA attributes. 21 │ var a = ; 22 │ var a = ; > 23 │ var a = ; │ ^^^^^^^^^^^^^^^^^^^^^^^ 24 │ var a = ; i Missing ARIA prop(s): - aria-checked ``` ``` invalid.jsx:24:15 lint/a11y/useAriaPropsForRole ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! The element with the menuitemradio ARIA role does not have the required ARIA attributes. 22 │ var a = ; 23 │ var a = ; > 24 │ var a = ; │ ^^^^^^^^^^^^^^^^^^^^ i Missing ARIA prop(s): - aria-checked ```