This syntax worries me. We are creating side effects on an existing view but depending on the state of the view at that point in time it may or may not have an impact. I.e. if the view is already rendered then changing the class attribute will not have any impact unless rerendered.

Since the owner has control over the view going into the rendering cycle I would make this syntax when given an existing view instance illegal.