- From: Reitzel, Charlie <CReitzel@arrakisplanet.com>
- Date: Wed, 2 Jan 2002 18:53:42 -0500
- To: "'JAMESICUS@aol.com'" <JAMESICUS@aol.com>, html-tidy@w3.org
- Cc: carole@fates.org
FWIW, the current version of Tidy on SourceForge (see
http://tidy.sourceforge.net) will add the XML declaration prior to the
DOCTYPE when using -asxhtml (or --output-xhtml yes).
-----Original Message-----
From: JAMESICUS@aol.com [mailto:JAMESICUS@aol.com]
Sent: Wednesday, December 19, 2001 6:48 PM
To: html-tidy@w3.org
Cc: carole@fates.org
Subject: Re: DOCTYPE affects Netscape 6
In a message dated 12/19/01 8:31:04 AM US Mountain Standard Time,
carole@fates.org writes:
> Running 'tidy -asxml' puts in a DOCTYPE declaration that
> seems to confuse Netscape 6. Now, this seems like a
> perfectly valid w3c-compliant declaration, so it may be
> Netscape's fault.
I personally always copy and paste the DOCTYPE declaration constructs from
one of my templates whenever I create a new page and thus had never observed
the ones affixed by Tidy. I just ran an old (HTML version 4.0) document
through HTML-Kit/Tidy -- using the convert to XHTML facility -- which
produced the following constructs:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This is deficient IAW the W3C XHTML 1.0 Specification (the XML declaration
is missing and the html root element does not include the language
attributions) which prescribes (for example):
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
James Pickering
Tucson, Arizona
Received on Wednesday, 2 January 2002 18:53:48 UTC