svg-focusable
What it does
Section titled “What it does”Reports an <svg> that has no focusable attribute.
Why it matters
Section titled “Why it matters”Internet Explorer 11 and old Edge make every <svg> a stop of the Tab key unless it says focusable="false".
To fix, add focusable="false".
Example
Section titled “Example”...<svg><path d=""></path></svg><svg focusable="false"></svg>...Configuration
Section titled “Configuration”angular: lint: rules: svg-focusable: warn # off (default), warn, errorhtml: lint: rules: svg-focusable: warn # off (default), warn, errorsvelte: lint: rules: svg-focusable: warn # off (default), warn, errorvue: lint: rules: svg-focusable: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line svg-focusable in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| html-validate | svg-focusable |
full |