- From: Pablo Neirotti <dotmacintosh@gmail.com>
- Date: Fri, 4 Jul 2008 13:11:39 -0300
- To: "David Dorward" <david@dorward.me.uk>
- Cc: www-validator@w3.org
- Message-ID: <c5bf0fcc0807040911i73235097rd8e17c2782e8b002@mail.gmail.com>
All right, but that's their solution to not have to deal with string contents. There should be no problems, as whatever is written in a string is to be stored in memory or a property. It's like a bug they are not willing to fix =P all right, i'll use the alternative proposed: move my dynamically generated javascript files to a static .js file xD. So, thanks David for the links! =) On Fri, Jul 4, 2008 at 6:32 AM, David Dorward <david@dorward.me.uk> wrote: > > On 4 Jul 2008, at 04:17, ArtPulse wrote: > > >> 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. >> > > Not true. They do matter. > > Is this a "bug"? Or we're not allowed to use HTML code in Javascript >> strings on XHTML 1.0 Transitional? >> > > http://www.w3.org/TR/xhtml1/#h-4.8 > > But I bet you're pretending your XHTML is really HTML so > > http://www.w3.org/TR/xhtml1/#C_4 > > and see also http://www.webdevout.net/articles/beware-of-xhtml > > > -- > David Dorward > http://dorward.me.uk/ > http://blog.dorward.me.uk/ > > > -- Art by Pulse at www.artpulse.com.ar
Received on Friday, 4 July 2008 16:12:18 UTC