Empty id and name attributes tests

Index page

To determine if id and name attributes are considered invalid if written as boolean attributes, or attributes with blank values.


Example 01: id and name attributes without values

Code

<button id name aria-label="">Test one</button>

Dummy link after


Example 02: empty id and name attributes

Code

<button id="" name="" aria-label="">Test two</button>

Dummy link after


Results

Both methods are considered invalid.

Index page