---
title: 'Compiler warnings'
generated: 'generated by process-messages/index.js'
---
Svelte warns you at compile time if it catches potential mistakes, such as writing inaccessible markup.
Some warnings may be incorrect in your concrete use case. You can disable such false positives by placing a `` comment above the line that causes the warning. Example:
```svelte
```
You can list multiple rules in a single comment, and add an explanatory note alongside them:
```svelte
...
```
## `a11y_accesskey`
> [!NOTE] Avoid using accesskey
## `a11y_aria_activedescendant_has_tabindex`
> [!NOTE] An element with an aria-activedescendant attribute should have a tabindex value
## `a11y_aria_attributes`
> [!NOTE] '\<%name%>' should not have aria-* attributes
## `a11y_autocomplete_valid`
> [!NOTE] '%value%' is an invalid value for 'autocomplete' on '\'
## `a11y_autofocus`
> [!NOTE] Avoid using autofocus
## `a11y_click_events_have_key_events`
> [!NOTE] Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as '\