Introduce setProp
In template output, use setProp instead of setAttribute