.attr setting boolean attributes

Fixed setting boolean attributes