RE: Why behaviour of Tidy online and Windows command is different?

"Srinivas Reddy Yalala -X (syalala - Satyam at Cisco)" <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <2054F8FC6F5FDE4DB9A4D9F9D443326E02FE242F@xmb-sjc-224.amer.cisco.com>
Hi Arnaud,

1) Tidy version at: http://infohound.net/tidy/tidy.pl is as below.
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 11
February 2007), see www.w3.org" />

2) Tidy version in my Windows OS local machine
HTML Tidy for Windows released on 6 November 2007

I have used the command: "tidy -f c:\error.txt -m abc.html" to generate
XHTML document.

It is having below problems.

a) It is added tidy meta tag and does not add end tag to it.

<meta name="generator" content="HTML Tidy for Windows (vers 6 November
2007), see www.w3.org">

b) It is not able to add end tag to image, <img height="9"
src="contentTwiddle.gif"
tppabs="http://www.abc.com/offer/power/images/content.gif" width="25">

I have checked the error log and it gives the below message.

line 4 column 70 - Warning: <img> proprietary attribute "tppabs"
line 4 column 70 - Warning: <img> lacks "alt" attribute

c) It does not convert tag <br> to <br/>

Can you please provide me how to overcome this problem.

Note: HTML conversion from "http://infohound.net/tidy/tidy.pl" website
very accurate and it is perfectly opening in IE browser. 

Thanks,
Srinivas

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Arnaud Desitter
Sent: Friday, January 25, 2008 8:53 AM
To: Srinivas Reddy Yalala -X (syalala - Satyam at Cisco)
Cc: [email protected]
Subject: Re: Why behaviour of Tidy online and Windows command is
different?

On 25/01/2008, Srinivas Reddy Yalala -X (syalala - Satyam at Cisco)
<[email protected]> wrote:
>
> Hi,
>
> I am checking the Tidy online (I think, it is written in Perl) and 
> Windows Tidy command, the output content is different for same input
content.
>
> 1) Online Tidy URL: http://infohound.net/tidy/tidy.pl Output content 
> of online tidy adding the below meta tag also.
> <meta name="generator" content=
> "HTML Tidy for Linux/x86 (vers 11 February 2007), see www.w3.org" />
>
> 2) Using the below Windows Tidy command.
> tidy -f c:\error.txt -m c:\abc.html
>
> Can anyone help me to understand the difference of both Tidy
softwares?

You do not tell us which version of tidy you are using. Make sure that
the options are identical. Failing that, contact the person that
maintains "http://infohound.net/tidy/tidy.pl " as this is not link with
the maintainer of tidy.
Good luck,

>
> Thanks,
> Srinivas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.