W3C home > Mailing lists > Public > www-validator@w3.org > July 2008

[VE][64] Javascript strings with html code

From: ArtPulse <dotmacintosh@gmail.com>
Date: Fri, 04 Jul 2008 00:17:54 -0300
To: www-validator@w3.org
Message-Id: <1215141474.13140.3.camel@px0>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:30 GMT