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

Tags overlapping

From: Petr Langer <p.langer@nexnet.cz>
Date: Tue, 27 Feb 2001 16:57:38 +0100
Message-ID: <011901c0a0d6$0217bed0$0100a8c0@ppc>
To: <html-tidy@w3.org>
Hi all,

I'm new to using HTMLTidy and to this mailing group.
I'v just downloaded COM wrapper and made some tests to see how overlapped
tags are corrected.

I usend this code for cleaning:
<html>
<head>
<title>Test</title>
</head>
<BODY>
<br>
<p> This is just a test<b><p><i>next paragraph</b> and next text</i>
</body>
</html>

and I got:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
<br>
<p>This is just a test</p>

<p><b><i>next paragraph</i> and next text</b></p>
</body>
</html>

--------------------------
I know that HTML code cleaning is not simple, but if you take a look at
first (wrong) code, it would make a sense not to change order of closing
tags </b> </i>, but of opening ones. If you do it manually, document than
looks the same as if rendered by using the wrong code. Is there a way how to
make HTMLTidy to modify code such way?

Thx
    Petr Langer
Received on Tuesday, 27 February 2001 10:57:00 GMT

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