- From: Brian Hulse <brian_hulse@excite.com>
- Date: Fri, 14 Oct 2005 10:44:27 -0400 (EDT)
- To: html-tidy@w3.org
I recently upgraded from the 08 Aug 2002 version of tidy to the 12 Apr 2005 and now my documents have an xml declaration added to them.
Here is my input file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content=
"text/html; charset=iso-8859-1" />
<title>Insert Your Title Here</title>
</head>
<body>
<div id="Content">
<h1>Insert Your Title Here</h1>
<p>Add your information here and use the links below to
validate before publishing.</p>
</div><!-- END OF CONTENT -->
<p>Compliant with <a href="http://validator.w3.org/">XHTML</a>
and <a href="http://jigsaw.w3.org/css-validator/">CSS2</a>
standards - accessible by all browsers.</p>
</body>
</html>
My config file:
// config file for HTML tidy - B. Hulse 7/19/2004
add-xml-decl: no
break-before-br: no
char-encoding: latin1
indent-spaces: 3
indent: auto
input-xml: no
logical-emphasis: yes
markup: yes
numeric-entities: yes
output-xhtml: yes
quote-ampersand: no
quote-nbsp: yes
show-warnings: yes
tidy-mark: n
uppercase-attributes: no
uppercase-tags: no
wrap: 100
// ***** for MS-Word generated (Yuck!) HTML *****
// bare: yes
// bare=strips Microsoft specific HTML from Word 2000
// documents, and output spaces rather than non-breaking spaces
// where they exist in the input.
clean: yes
// clean=strips out surplus presentational tags and attributes
// replacing them by style rules and structural markup as
// appropriate. It works well on the HTML saved by Microsoft
// Office products.
word-2000: yes
// go to great pains to strip out all the surplus stuff Microsoft
// Word 2000 inserts when you save Word documents as "Web pages".
// Doesn't handle embedded images or VML.
My output:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Insert Your Title Here</title>
</head>
<body>
<div id="Content">
<h1>Insert Your Title Here</h1>
<p>Add your information here and use the links below to validate before publishing.</p>
</div><!-- END OF CONTENT -->
<p>Compliant with <a href="http://validator.w3.org/">XHTML</a> and <a href=
"http://jigsaw.w3.org/css-validator/">CSS2</a> standards - accessible by all browsers.</p>
</body>
</html>
And my error report:
Info: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
Info: Document content looks like XHTML 1.0 Strict
No warnings or errors were found.
To learn more about HTML Tidy see http://tidy.sourceforge.net
Please send bug reports to html-tidy@w3.org
HTML and CSS specifications are available from http://www.w3.org/
Lobby your company to join W3C, see http://www.w3.org/Consortium
Should I do something differently, or is this a bug?
Thanks in advance,
Brian
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
Received on Friday, 14 October 2005 18:18:17 UTC