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

RE: Request: a 'strip-presentation' option

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Thu, 25 Jul 2002 01:54:08 -0400
To: <html-tidy@w3.org>
Cc: <Tidy-develop@lists.sourceforge.net>
Message-ID: <000e01c2339f$b17a8ad0$6701a8c0@blackie>

Richard A. O'Keefe wrote:

> Jelks Cabaniss" <jelks@jelks.nu>
> (1) wants a single option to drop presentation stuff entirely,
> (2) and for this to also strip class= attributes.
> I agree with (1).
> But when mapping from XML to HTML I like to use the class= attribute
> to record the original XML element type.  If you have an information
> retrieval system that tries to exploit element structure (and this is
> one very good reason for wanting to have only structural elements
> there) then you might want to use the *original* element types in your
> indexing, if you know them.  I know someone who is building just such 
> an information retrieval system, so I wouldn't go along with (2).
> What I want instead is a way for presentation stripping not to touch
> class attributes at all.

Ah, I wasn't clear.  I didn't mean for Tidy to strip *all* class
attributes, just the ones *it* builds internally to replace <FONT> tags,
etc. when the "clean" option is specified (Tidy names these classes
"c1", "c2", ...).  

Class attributes in the original markup should of course be left intact.

Received on Thursday, 25 July 2002 01:55:05 UTC

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