Fix setAttribute method with extra argument for FF