Is this cross-browser friendly? Or do you need to use `setAttribute` here too?