Re: bug report: possible erroneous warnings from tidy in script content

Fred is right about line 22.  It wants to be "<\A>", not "</A>".  Also, 
curious about line 25, I tried your file on current CVS (main branch) and 
it gives only the first, correct, warning.  Not sure what we did to fix 
that since April.

At 02:52 PM 7/5/2002 -0400, Jeff Greif wrote:
>The source file below gives these warnings:
>
>$ tidy -errors tryjunk.html
>
>HTML Tidy for Windows (vers 1st April 2002 (no joke); built on Apr  6 
>2002, at 23:21:56)
>Parsing "tryjunk.html"
>line 22 column 72 - Warning: '<' + '/' + letter not allowed here
>line 25 column 0 - Warning: '<' + '/' + letter not allowed here
>
>tryjunk.html: Doctype given is "-//W3C//DTD HTML 4.0 transitional//EN"
>tryjunk.html: Document content looks like HTML 3.2
>2 warnings, 0 errors were found!
>
>Neither of the warnings, nor the inference about HTML 3.2, look correct to me.
>
>Jeff
>
>--------------------------------------- tryjunk.html 
>---------------------------------
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//EN">
><HTML>
><HEAD>
><LINK rel="StyleSheet" type="text/css" href="style.css">
><SCRIPT type="text/javascript">
><!--
>/* J. Greif, 2002/07/05
>  This function writes an email address into the document as it
>  is rendered in the browser, without making that address visible
>  to a web crawler which does not actually execute the javascript
>  but only has access to the raw HTML source.
>  This is a weak, but useful form of spam protection -- makes it harder
>  for automated email address collecting programs to grab the address.
>*/
>function spewContact(linktext) {
>   var p1 = "com";
>   var p2 = ":Me-me-me";
>   var p3 = "mailto";
>   var p4 = "blah.";
>   var p5 = "?subject=re: Gibberish";
>   var p6 = "@";
>   document.write("<A href='", p3, p2, p6, p4, p1, p5,"'>", linktext, "</A>");
>}
>-->
></SCRIPT>
><TITLE>Random doc</TITLE>
></HEAD>
><BODY></BODY></HTML>
>

Received on Thursday, 11 July 2002 10:47:33 UTC