Skip to content

💅 useValidAriaValues false positive for svelte aria-rowcount attribute using variable #10637

Description

@minht11

Environment information

Details
CLI:
  Version:                      2.5.0
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Rule name

useValidAriaValues

Playground link

https://biomejs.dev/playground/?lineWidth=120&expand=always&whitespaceSensitivity=strict&indentScriptAndStyle=true&tab=formatter&pane=Diagnostics&files.main.svelte=PABzAGMAcgBpAHAAdAAgAGwAYQBuAGcAPQAiAHQAcwAiAD4ACgAgACAAYwBvAG4AcwB0ACAAYwBvAHUAbgB0ACAAPQAgADEACgA8AC8AcwBjAHIAaQBwAHQAPgAKAAoAPABkAGkAdgAKAAkACQByAG8AbABlAD0AIgBnAHIAaQBkACIACgAJAAkAYQByAGkAYQAtAHIAbwB3AGMAbwB1AG4AdAA9AHsAYwBvAHUAbgB0AH0ACgA%2BAAoAPAAvAGQAaQB2AD4ACgA%3D

Expected result

Should not report "The value of the ARIA attribute aria-rowcount is not correct." for when value is a variable.

<script lang="ts">
  const count = 1
</script>

<div

		role="grid"
		aria-rowcount={count}
></div>

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

Labels

A-LinterArea: linterL-HTMLLanguage: HTML and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugS-Good first issueStatus: Good for newcomers

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions