RE: Tidy adding returns inside xml elements

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
kipp.howard@courtlink.com   
(425) 372-1837 or (800) 774-7317 ext 1837

Received on Friday, 12 July 2002 08:57:42 UTC