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
Received on Thursday, 21 February 2002 04:48:50 UTC

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