Re: Unexpected behavoir converting XHTML -> HTML

* Jim Higson wrote:
>So I run:
>$ tidy -ashtml -qi foo.xhtml > foo.html
>
>But the file created is NOT really HTML, for a start it has the XML headers:

Yes, this is a known problem, see e.g. http://tidy.sf.net/bug/880681

>?xml version="1.0" encoding="iso-8859-1"?>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
><html lang="en-GB">
><head>
>
>Which I don't think should be there for HTML 4.01.
>It is also missing a character encoding, while I think it should have used 
>utf8, since that is the default for XML documents.

What do you mean here exactly?

Received on Saturday, 14 August 2004 17:27:40 UTC