W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2004

Re: Merging classes of consecutive elements

From: Jany Quintard <jany.quintard@free.fr>
Date: Fri, 14 May 2004 09:16:29 +0200
To: html-tidy@w3.org
Cc: Steffen Glückselig <steffen@gungfu.de>
Message-ID: <20040514071628.GB13661@raisin>

* Steffen Glückselig [Fri, 14/05/2004 at 00:02 +0200]
> 
> Hello,
> 
> a while ago I've already asked with no success. Since I still have the  
> problem and couldn't find a solution elsewhere I ask again:
> 
> given markup like
> 	<div class="t1">
> 		<div class="t2">
> 			test
> 		</div>
> 	</div>
A remark: the div are not consecutive. One is inside the other.

I tried this:
cat test.html | tidy -i

with test.html:
<body>
        <div class="t1">
                <div class="t2">
                        test
                </div>
        </div>
</body>

and got this result:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">

<html>
  <head>
    <meta name="generator" content=
    "HTML Tidy for Linux/x86 (vers 1st March 2002), see www.w3.org">

    <title></title>
  </head>

  <body>
    <div class="t1">
      <div class="t2">
        test
      </div>
    </div>
  </body>
</html>

which seems perfectly correct.
Could you show us your config or command line?
And give the version you are using?

Jany
Received on Friday, 14 May 2004 03:24:01 GMT

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