Are they allowed? and do they work with all browsers?
Example:
<div role = "region"
id = "some-id"
class = "a-class another-class">
Yes, any amount of whitespace is allowed and will work in all browsers.
One consideration - this will add to the page size, so if bandwidth and performance are concerns, try to limit the amount of whitespace you use.