- From: Tony L. Svanstrom <tony@svanstrom.com>
- Date: Thu, 27 May 1999 04:09:40 -0400 (EDT)
- To: Kynn Bartlett <kynn@idyllmtn.com>
- cc: www-validator@w3.org
Thank you; I thought that the problem was too simple to not have been detected before, but at the same time it looked ok to me as well as the people that I asked (I've not really worked with "webdesign" in a cpl of years but the people that I asked still do). /Tony PS I didn't use http://validator.w3.org/check/referer because I wasn't aware of it. -- Per scientiam ad libertatem. ©1999 Tony L. Svanstrom On Wed, 26 May 1999, Kynn Bartlett wrote: > At 10:09 PM 5/26/1999 , Tony L. Svanstrom wrote: > >As you can see it's a simple JavaScript that improves the "this page > >validates"-code so that you don't have to change it for every page. > > Out of curiousity, why not use http://validator.w3.org/check/referer > for this? > > Anyway, last time this came up, Liam Quinn wrote > (http://lists.w3.org/Archives/Public/www-validator/1999JanMar/0035.html) > > BEGIN QUOTE: > >From <http://www.w3.org/TR/REC-html40/types.html#idx-CDATA-1>: > 'Although the STYLE and SCRIPT elements use CDATA for their data model, for > these elements, CDATA must be handled differently by user agents. Markup > and entities must be treated as raw text and passed to the application as > is. The first occurrence of the character sequence "</" (end-tag open > delimiter) is treated as terminating the end of the element's content. In > valid documents, this would be the end tag for the element.' > > So you need to escape your </tag>: > <script language="JavaScript" type="text/javascript"> > <!-- > document.write ('<some really long tag '); > document.write ('with lots of data><\/tag>'); > // --> > </script> > END QUOTE > > Hope this helps. > > -- > Kynn Bartlett <kynn@idyllmtn.com> http://www.kynn.com/ > Chief Technologist, Idyll Mountain Internet http://www.idyllmtn.com/ > Become AWARE of Web Accessibility! http://aware.hwg.org/ > Myths about Web Accessibility http://www.kynn.com/+myths > >
Received on Thursday, 27 May 1999 14:49:26 UTC