- 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
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