A
Andre
Hi-
Is it possible to dynamically change a tag name, say a <div> into a
<canvas>? The reason I want to do this is that I would like my page
to validate (according to htmlTidy) but the <canvas> tag is flagged as
an error.
I have tried something like:
var canvasName = document.getElementById("canvas_%s");
canvasName.tagName="p";
but got an error about setting a property that has only a getter...
André
Is it possible to dynamically change a tag name, say a <div> into a
<canvas>? The reason I want to do this is that I would like my page
to validate (according to htmlTidy) but the <canvas> tag is flagged as
an error.
I have tried something like:
var canvasName = document.getElementById("canvas_%s");
canvasName.tagName="p";
but got an error about setting a property that has only a getter...
André