Adds or updates an attribute on the selected elements. Existing attributes keep their quotes and position; new ones follow the layout of the existing attributes.