don't lose "style" attribute if added mid-move