Merge :tag.class with :class property from attributes, closes #6