W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2002

RE: [Tidy-dev] Request: a 'strip-presentation' option

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Sat, 20 Jul 2002 21:33:33 -0400
To: <html-tidy@w3.org>, <Tidy-develop@lists.sourceforge.net>
Message-ID: <001101c23056$a0c08f10$6601a8c0@blackie>

Charles Reitzel wrote:

> > Ideally this option should also remove the extraneous
> > <p>&nbsp;</p>

> Dave's relatively recent -bare option might do that.

No, -bare turns it either into something like this

	<p class="c3"> </p>

or this

	<p> </p>

which means there are no &nbsp;'s, but it doesn't actually remove
content-void "paragraphs" that were only put there for visual effects in
various browsers.

I'm also looking at things like 

    <p class="c3"><br />
    </p>

(and other variations thereof).   IMO, a 'strip-presentation' option
should also remove all such content-void paragraphs, headings, and
list-items.


/Jelks
Received on Saturday, 20 July 2002 21:34:05 GMT

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