I'm using document.body.innerHTML
to get a text version of the HTML so I can store it and reload it later using jQuery's append
. It works fine but it isn't saving the data-*
attributes that I'm storing in the HTML nodes. Is there a method that can get me a string of all the innerHTML including this data attributes?
Aucun commentaire:
Enregistrer un commentaire