fix native attr bug in ff and safari