Skip to content

Files

Latest commit

 

History

History
16 lines (10 loc) · 424 Bytes

a11y-invalid-attribute.md

File metadata and controls

16 lines (10 loc) · 424 Bytes

Pattern: Malformed attribute value

Issue: -

Description

Enforce that attributes important for accessibility have a valid value. For example, href should not be empty, '#', or javascript:.

<!-- A11y: '' is not a valid href attribute -->
<a href=''>invalid</a>

Further Reading