Fix delete attribute for safari