add support for multiple states in attribute

You can't use `classList.add` with a string containing mutiple
space separated classes.