[VE][127] New Error Message Suggestion

<script language="JavaScript">  is so common that it would be helpful if you
provided a switch to turn off this and some of the other very common
renderings or a short tutorial on how to add it to the .DTD document.  You
did a great job on showing how to add leftmargin, rightmargin, etc.  I used
this and it eliminated much of the errors I was not interested in.  I could
better focus on the errors that might trip up a search engine.  I'm still
not sure what the deal is between this and <script type="text/javascript">.
It seems like the whole world is using it despite it's apparent deprecation.
The problem here is FrontPage and other editors generate this.  I even
updated to FrontPage 2003, but it does the same thing.  Anyway, thanks for
the Validator.  It's difficult to weed out the results that need to be
changed, but overall it's a lot better than not having a tool like this.  I
really appreciate the effort you put into this website.

This may be a bug....
[VE][79] New Error Message Suggestion
Line 165, column 330: end tag for element "A" which is not open
...="Add this page to my favorites."></A>');
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. 

 Here is the code that is generating this error.
<!-- 164: if ((navigator.appVersion.indexOf("MSIE") > 0) &&
(parseInt(navigator.appVersion) >= 4)) { 165: document.write('<A
HREF="javascript:void(0);"
onclick="window.external.AddFavorite(location.href,document.title);"
onkeypress="window.external.AddFavorite(location.href,document.title);"><IMG
BORDER="0" SRC="images/addtofav.gif" WIDTH="90" HEIGHT="30" alt="Add to
Favorites" longdesc="Add this page to my favorites."></A>'); 166: } 167:
//--> 

Here is my actual code
<script type="text/javascript">
<!--
if ((navigator.appVersion.indexOf("MSIE") > 0) &&
(parseInt(navigator.appVersion) >= 4)) {document.write('<A
HREF="javascript:void(0);"
onclick="window.external.AddFavorite(location.href,document.title);"
onkeypress="window.external.AddFavorite(location.href,document.title);"><IMG
BORDER="0" SRC="images/addtofav.gif" WIDTH="90" HEIGHT="30" alt="Add to
Favorites" longdesc="Add this page to my favorites."></A>');
}
//-->
</script>

Received on Tuesday, 25 May 2004 11:41:36 UTC