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

suppressing/transforming deprecated tags [Re: Tidy putting spurious "/" into tags]

From: Sebastian Lange <lange@cyperfection.de>
Date: Tue, 11 Jul 2000 11:54:15 +0200
Message-Id: <>
To: html-tidy@w3.org
I believe there should be a configuration option to either "leave", "drop" 
or "transform to CSS" deprecated attributes.

Most important to me is that tidy's output is VALID HTML, especially 
proprietary Microsoft Tags/Attributes should be simply dropped.
Of course some people will disagree, that's why having this as a 
configurable option is desirable.

fix-bad-attributes: leave, drop, convert
         If set to _drop_, deprecated attributes will be discarded. If set to
         _convert_, causes Tidy to replace deprecated attributes by appropriate
         style rules. The default is _leave_.

"deprecated" varies depending on the selected DTD, of course... (attributes 
that are deprecated in STRICT version might be compliant with the 
TRANSITIONAL version, and this should be recognized).

Any comments or objections?


At 10:04 11.07.2000 +0100, Rzepa, Henry wrote:
> >I have mentioned this before, it would be a very nice addition if tidy 
> would allow to suppress "illegal" attributes.
>This seems a  very important point. Some  "deprecated" (lets not call the
>illegal) attributes can be hived off into stylesheets.  But, as I posted
>earlier,  I would like to raise the issue of whether Tidy should or should not
>"transform" deprecated attributes, or indeed elements themselves,
>into "recommended" forms.
>For me at least, the most important of these is <embed> and <applet>,
>both of which appear to require transformation to <object>  (or possibly the
>little used or implemented <iframe> ). Once in XML of course, XSLT
>can be used to achieve further transformations.
>so, should one in general <<suppress>> or <<transform>>  "illegal" 
>attributes, elements
>and the like?
>Henry Rzepa. +44 (0)20 7594 5774 (Office) +44 (0)20 7594 5804 (Fax)
>Dept. Chemistry, Imperial College, London, SW7  2AY, UK.
Received on Tuesday, 11 July 2000 05:57:23 UTC

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