<!--[if IE]> bug

Every page on my site validated until I added this to them:

<!--[if IE]>

<script type="text/javascript"><!--
google_ad_client = "pub-7561916367787804";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQj6eVzgEaCIxA5niBniDSKOm293M";
//--></script>
<script type="text/javascript" src="
http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<![endif]-->

The errors I get are:

   1. Warning *Line 36 column 35*: S separator in comment declaration.

   <script type="text/javascript"><!-*-*

    This may happen if you have consecutive comments but did not close
   one of them properly. The proper syntax for comments is <!-- my comment -->.


   ✉<http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.popearthur.com%2F;errmsg_id=387#errormsg>
   2. Info *Line 37 column 42*: W: S separator in comment declaration.

   google_ad_client = "pub-7561916367787804"*;*

   3. Error *Line 37 column 0*: invalid comment declaration: found name
   start character outside comment but inside comment declaration.

   *g*oogle_ad_client = "pub-7561916367787804";

    ✉<http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.popearthur.com%2F;errmsg_id=53#errormsg>
   4. Info *Line 34 column 0*: comment declaration started here.

   *<*!--[if IE]>

   5. Error *Line 42 column 13*: end tag for element "script" which is
   not open.

   //--></script*>*

    The Validator found an end tag for the above element, but that
   element is not currently open. This is often caused by a leftover end tag
   from an element that was removed during editing, or by an implicitly closed
   element (if you have an error related to an element being used where it is
   not allowed, this is almost certainly the case). In the latter case this
   error will disappear as soon as you fix the original problem.

   If this error occured in a script section of your document, you should
   probably read this FAQ
entry<http://validator.w3.org/docs/help.html#faq-javascript>.


   ✉<http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.popearthur.com%2F;errmsg_id=79#errormsg>
   6. Error *Line 46 column 3*: "endif" is not a reserved name.

   <![*e*ndif]-->


Apparently, the validator thinks that the <!--[if IE]> tag is an unclosed
comment tag, in which the javascript is in some sort of conflict with, or
something. When I take the <!--[if IE]> tags away my pages validate fine, so
it's not a flaw in the javascript. Is this an error that can/will be fixed?

-Thank you.


--
Music, writing, and nerdery by Arthur Pope.
www.PopeArthur.com  -I'm Ex Cathedra, baby!

Received on Wednesday, 22 March 2006 02:37:50 UTC