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

Re: Tidy putting spurious "/" into tags

From: Richard A. O'Keefe <ok@atlas.otago.ac.nz>
Date: Wed, 12 Jul 2000 10:23:15 +1200 (NZST)
Message-Id: <200007112223.KAA19170@atlas.otago.ac.nz>
To: h.rzepa@ic.ac.uk, html-tidy@w3.org
Cc: g.gkoutos@ic.ac.uk
Henry Rzepa wrote:

	so, should one in general <<suppress>> or <<transform>>  "illegal" attributes, elements
	and the like?

Yes.
Or rather, it all depends.  On _which_ attribute, _why_ the HTML is being
tidied, _whether_ an acceptable transformation exists, _what_ the output
is to be used with.

Obviously, if you have HTML-for-browser-foo using attributes that are
specific to browser foo, and you want to use the tidied HTML with browser
foo, a default behaviour of leaving non-standard attributes just the way
they are is pretty much ideal.

Equally obviously, if (as happens to be the case here), there are attributes
you never wanted in the first place but the editor you use insists on
putting them in, you want them deleted.

Even more obviously, if there is important presentation information which
_can_ be expressed in a standard way using style sheets, you'd like to do
that (so that browser Bar can handle the file), but you might well want to
keep the old attributes as well (so that old browser Foo, which can't handle
CSS2 yet, can still render the file).

It's the kind of problem options files are designed to help with.
Received on Tuesday, 11 July 2000 18:23:25 GMT

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