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

RE: Tidy adding returns inside xml elements

From: Howard, Kipp (LNG-CL) <Kipp.Howard@lexisnexis.com>
Date: Fri, 12 Jul 2002 05:58:41 -0700
Message-ID: <5150922C4A9FFE4DA2F658016BF9FA3C08A5E2@lnxseamail01.lexisnexis.com>
To: "'html-tidy@w3.org'" <html-tidy@w3.org>

Parsons, Rick [mailto:rick.parsons@eds.com] wrote:
> The drawback is recent browser handling of certain XHTML 
> elements. One we
> have discussed before is <script src="..." /> in the <head> 
> section. This
> should be equivalent to <script src="..."></script> but many 
> browsers don't
> handle it correctly.

Good point.

> An option would be fine (and probably useful) but I think the 
> default should
> be to not to convert.

Since there are already two options (output-xhtml and output-xml) for
defining the output, I would think that if you using  output-xhtml, you
should not convert empty elements, with both start and end tags (i.e.,
<empty></empty) to an empty element with a single tag (i.e., <element />).
If you are using output-xml, then doing the conversion makes sense, IMO.

I hope that made some sense.

Kipp E. Howard - Sr. Software Engineer @ LexisNexis CourtLink
(425) 372-1837 or (800) 774-7317 ext 1837
Received on Friday, 12 July 2002 08:57:42 UTC

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