W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2005

tidy as simple validator

From: xah lee <xah@xahlee.org>
Date: Sat, 10 Sep 2005 02:54:48 -0700
Message-Id: <800bccebfb70d5ef3d4f5a2cd727b72e@xahlee.org>
To: html-tidy@w3.org

is there a way to configure tidy so that it simply report if the file 
is malformed (e.g. missing tag or missing <) and give their line 

if i do for example:

tidy -utf8 -e x.html

for a very simple html with mismatched tags

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">

but tidy gives this verbose answer with "0 errors were found!"

line 8 column 13 - Warning: replacing unexpected big by </big>
line 8 column 1 - Warning: missing </h1> before </body>
Info: Doctype given is "-//W3C//DTD HTML 4.01 Transitional//EN"
Info: Document content looks like HTML 4.01 Strict
2 warnings, 0 errors were found!

To learn more about HTML Tidy see http://tidy.sourceforge.net
Please send bug reports to html-tidy@w3.org
HTML and CSS specifications are available from http://www.w3.org/
Lobby your company to join W3C, see http://www.w3.org/Consortium

i wanted to use tidy in batch mode in unix. e.g. find . -name "*html" | 
xargs -l -i tidy -utf8 -e {}


i'm using version: HTML Tidy for Mac OS X released on 1 July 2005

Received on Saturday, 10 September 2005 09:54:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:55 UTC