I\'m wondering if there\'s a way to change the text of anything in HTML without using innerHTML.
Reason I\'m asking is because it\'s kinda frowned upon by the W3C. I
It appears to me that the CSS+HTML+JS combination should achieve desired effects:
.myelement:before { content: attr(alt); } ... ... element.setAttribute('alt', 'new value');
Does anyone know if this works in practice?