- From: Jeff Greif <jgreif@alumni.princeton.edu>
- Date: Fri, 5 Jul 2002 14:52:56 -0400 (EDT)
- To: <html-tidy@w3.org>
- Message-ID: <10bd01c22455$1905dd30$6400a8c0@JMG>
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 00:45:02 UTC