Use setAttribute and 'in' so IE8 doesn't feak out.