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

Re: Problems tidying content as XHTML strict

From: Fred Bone <Fred.Bone@dial.pipex.com>
Date: Thu, 14 Aug 2003 09:45:28 +0100
To: Tim Fountain <tim@incutio.com>
CC: html-tidy@w3.org
Message-ID: <3F3B5A38.15298.4C312B2@localhost>

On 12 Aug 2003 at 15:40, Tim Fountain wrote:

> I'm trying to use HTML tidy to clean up the HTML output from a
> web-based editor. The output needs to be XHTML strict, however despite
> the doctype in the content and me setting the doctype in the tidy
> configuration file, the resulting output seems to be XHTML
> transitional.


> In the command line output when running tidy I see:
> Info: Doctype given is "-//W3C//DTD XHTML 1.0 Strict//EN"
> Info: Document content looks like XHTML 1.0 Transitional
> Does this mean tidy is deciding that the content looks more like XHTML
> transitional and is therefore ignoring the doctype I'm telling it to
> use? 

Roughly speaking, yes. Your document contains elements that do not 
conform to Strict, and Tidy is preserving them and adjusting the 
Doctype to suit.

The only other option would be to discard the non-Strict tags and 
attributes (since there's no general way to transform them into 
Strict ones).
Received on Thursday, 14 August 2003 04:45:52 UTC

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