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

Re: tidy - ? html tree number

From: Gary L Peskin <garyp@firstech.com>
Date: Tue, 09 Jan 2001 09:25:46 -0800
Message-ID: <3A5B499A.A56866F2@firstech.com>
To: Chunbo Shao <cxs0187@omega.uta.edu>
CC: html-tidy@w3.org
Chunbo Shao wrote:
> Hello, Gary
> very sorry to trouble you again. I already have no food or drink for
> almost the whole day up to now. Would you please still help me?

Major --

No trouble at all.  But you should take care of yourself.  It will catch
up with you!

> As to your guide, i comment the setXmlTags() line. The result in the
> attached treef.txt looks very good now. But, please see the attached
> out0.html which is used as the input for TestDOM.java, the children of
> <body> should be 5, but in the output treef.txt, it is 6. Why? how to fix
> it?

No, it's six, see below.

> i think <body> has 5 children:
>  "If you were not...", <br>, "Please go to:", <a...>,<p....>.
> am i right?

There is a text node consisting of a single blank between the <a...> and
the <p...>.
If you want to eliminate it, change your html to:


... NEW Home</a>
<p><font ...


... NEW Home</a><p><font ...

Received on Tuesday, 9 January 2001 12:26:01 UTC

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