Fix data attributes bug with firefox