Re: Validating at W3C

by "Justin H." <justinh(at)whidbey.net>

 Date:  Thu, 5 Jul 2001 08:38:42 -0700
 To:  "HWG Basics" <hwg-basics(at)hwg.org>
 References:  bellsouth gte
  todo: View Thread, Original
One other option is to "hide" your scripts like so:

<.script type="text/javascript">
<.!--
script goes here
//-->
<./script>

(again, ignore the dots in the tags!)

Since the entire script is wrapped in an HTML comment tag, the validator
ignores the script.

Justin H.

----- Original Message -----
From: "Larry Coats" <lcoats(at)gte.net>
To: "JamesKB" <jameskb(at)bellsouth.net>
Cc: <hwg-basics(at)hwg.org>
Sent: Tuesday, July 03, 2001 8:23 PM
Subject: Re: Validating at W3C


>
>
> JamesKB wrote:
>
> > Would someone please take a look at
http://www.res-xraynews.com/index.html
> > ? I'm getting a validation error as follows:
> >
> > document.write('">Add our site to your favorites (bookmarks).<./a>');
> >                                                                ^
> > Error: end tag for element "A" which is not open; try removing the end
tag
> > or check for improper nesting of elements...
>
> Try escaping the /. Instead of <./a>, use <.\/a> (just add a backslash
before
> the slash). (I added a . after each < - don't inlude those!).
>
> Larry Coats
>
>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA