fix(attributes/class): unexpected space inserted in class attribute

Closes #325