Allow attributes without values (e.g. `<input checked>`)
Refactor again!