[VE][64] Javascript strings with html code

Error [64]: "document type does not allow element X here"

More precisely:

Line 38, Column 52: document type does not allow element "b" here.
	document.getElementById("dAnsDisp").innerHTML = '<b>Vista previa:</b><br />' + str;

The validator doesn't realizes it's part of a string, in which HTML entities and others do not matter.

Is this a "bug"? Or we're not allowed to use HTML code in Javascript strings on XHTML 1.0 Transitional?

Thanks!

Received on Friday, 4 July 2008 08:53:25 UTC