update to always set and remove boolean attributes on element directly if they're present and boolean
1.2.4