Ho un sito su cui sto lavorando e utilizza tag "a parte", che non riesco a leggere su IE8, indipendentemente da quello che provo, anche con un Shiv HTML5. Quindi, mi chiedo, come sostituiresti i tag esistenti con altri tag con jQuery?Come sostituire un tag HTML con un altro tag in jQuery?
Per esempio, se volevo cambiare
<aside>
<h3></h3>
</aside>
a
<div>
<h3></h3>
</div>
Come vorrei che essere fatto?
Cosa stai cercando di realizzare sostituendo il tag? –
'document.createElement ('aside')' dovrebbe consentire di lavorare con il tag aside in IE8. Stai usando il doctype html5, giusto? –
.replaceWith ('tag_here'); – Memolition