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

Re: Tidy adding returns inside xml elements

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 12 Jul 2002 19:57:33 +0200
To: "Parsons, Rick" <rick.parsons@eds.com>
Cc: "'html-tidy@w3.org'" <html-tidy@w3.org>
Message-ID: <9g5uiu0pti8sqhn6d7kdsl1etp1iktb8dd@4ax.com>

* Parsons, Rick 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.

XHTML is special, it is beeing parsed using the HTML parser, not the
generic XML parser, same for the pretty printer, hence this is not a
problem if people don't specify -xml because they think XHTML == XML.

(IMO, -xml should be ignored if root element is 'html' with XHTML
namespace).
Received on Friday, 12 July 2002 13:57:59 GMT

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