This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Web Authoring Tools > September 2005 > tidy for simple validation





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author tidy for simple validation
Xah Lee

2005-08-31, 11:25 pm

how can i configure tidy so that it does the simplist validation?

i=2Ee. all i want is for it to check if htere are missing or mismatched
tags, and report to me which line it happened.

currently in my website development, i use Mac's iCab browser for the
validation service. But it's rathe ra manual GUI based process. I'd
like to use tidy or similar tool for batch checking. Are there other
tools?

Thanks.

Xah
xah@xahlee.org
=E2=88=91 http://xahlee.org/

Xah Lee

2005-08-31, 11:25 pm

ugh.... sorry for the post... looks like what i wanted is simply

tidy -e file.html

However, ugh, immediately i find a serious bug. When using -utf8, as in

tidy -utf8 -e file.html

tidy simply returns:

Info: Document content looks like HTML 3.2
No warnings or errors were found.

even though the file.html has lots of obvious mismatched tags.

what a OpenSource crap.

Xah
xah@xahlee.org
=E2=88=91 http://xahlee.org/

Xah Lee

2005-08-31, 11:25 pm

here's is a simple sample html where
tidy -utf8 index.html
chocks.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html;charset=3Dutf-8">
<title>Xah: XahLee.org Essays</title>
</head>
<body>

<p>Index <h3>XahLee.org.<//p><i>

<pre>Page created: 2005-06

<p align=3D"center"><img src=3D"../Icons_dir/icon_sum.gif" width=3D"32"
height=3D"32" alt=3D"Xah Signet"></p>

</body>
</html>


Xah
xah@xahlee.org
=E2=88=91 http://xahlee.org/

---------------------
Xah Lee wrote:
> ugh.... sorry for the post... looks like what i wanted is simply
>
> tidy -e file.html
>
> However, ugh, immediately i find a serious bug. When using -utf8, as in
>
> tidy -utf8 -e file.html
>
> tidy simply returns:
>
> Info: Document content looks like HTML 3.2
> No warnings or errors were found.
>
> even though the file.html has lots of obvious mismatched tags.
>
> what a OpenSource crap.
>=20
> Xah
> xah@xahlee.org
> =E2=88=91 http://xahlee.org/


Xah Lee

2005-09-07, 7:48 am

This problem is indeed a bug, but in version
=E2=80=9CHTML Tidy for Mac OS X released on 1st December 2002=E2=80=9D

using a 2005 version fixed this software flaw.

Xah
xah@xahlee.org
=E2=88=91 http://xahlee.org/

-------------------
Xah Lee wrote:
When using -utf8, as in

tidy -utf8 -e file.html

tidy simply returns:

Info: Document content looks like HTML 3.2
No warnings or errors were found.

even though the file.html has lots of obvious mismatched tags.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews