change set attribute by attr to prop.