W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2002

Re: tidy turns > into > and pretends nothing happened

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Thu, 21 Feb 2002 08:48:09 -0100
Message-ID: <3C74C259.9331286B@atmedia.net>
To: Dan Jacobson <jidanni@yahoo.com.tw>
CC: html-tidy@w3.org
Dan Jacobson wrote:
> 
> Tidy turns > into &gt; and pretends nothing happened.
> Sure, it is usually what we want, but I just don't think it is right
> for tidy to use the same 'no errors found' message for a file that is
> completely unchanged when run thru tidy, v.s. one that gets changed.

Tidy does warn about changes it makes to the document structure, e.g.
adding missing tags.
Since > and &gt; are equivalent no warning message is issued.

> At least tell us "I changed something, not too important, use diff if
> you absolutely must see it."

The output may be different even when the structure of the document is
unchanged, and no entities have been converted -- in essence, tidy
parses the document, builds an internal tree representation of the
document and serializes the internal tree as HTML.  There is no single
"canonical" form for an HTML document, so even when no errors or
warnings are reported you should always expect the output to look
different from the input.

-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Thursday, 21 February 2002 04:48:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:51 GMT