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

Problems tidying content as XHTML strict

From: Tim Fountain <tim@incutio.com>
Date: Tue, 12 Aug 2003 15:40:26 +0100
Message-ID: <1365707530.20030812154026@incutio.com>
To: html-tidy@w3.org


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

Input file: http://development.incutio.com/tim/tidy/input.html
Output file: http://development.incutio.com/tim/tidy/output.html

The output file still contains several tag attributes that don't exist
in XHTML strict (see the validation errors:

This is the contents of the config file I'm using:

tidy-mark: no
wrap: 0
output-xhtml: yes
doctype: "-//W3C//DTD XHTML 1.0 Strict//EN"
quote-marks: yes
enclose-text: yes
write-back: no

Note that the doctype in both the input and output files is given as
XHTML strict.

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? Or is this a bug in tidy itself?

Any help would be appreciated!

Tim Fountain | Web developer | Incutio Limited | www.incutio.com
email: tim@incutio.com | Tel: +44 8708 700 333 | Fax: +44 7092 181 581
Received on Thursday, 14 August 2003 03:29:15 UTC

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