compatibility with jquery html method