W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2004

Re: Using tidy to convert from transitional XHTML to strict XHTML

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 25 Feb 2004 20:33:37 +0100
To: "Leonard Armstrong" <LArmstrong@NBME.org>
Cc: <html-tidy@w3.org>
Message-ID: <4045f852.255474472@smtp.bjoern.hoehrmann.de>

* Leonard Armstrong wrote:
>Can tidy be used to alter transitional XHTML into valid strict HTML? My
>current focus is on the allowable child elements of the <body> tag. I have a
>transitional input file with <a> and <br> tags as children of <body>. When I
>run tidy with "output-xhtml: true" and "doctype: strict" in my config file,
>it does indeed output a strict XHTML DOCTYPE declaration, but it still leaves
>the <a> and <br> tags as direct children of the <body> tag.

You are looking for the --enclose-text and --enclose-block-text options.
Received on Wednesday, 25 February 2004 14:33:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:53 UTC