- From: Daniel Biddle <deltab@osian.net>
- Date: Wed, 24 Jan 2001 14:48:06 +0000 (UTC)
- To: "Elisabetta D'Alessandro" <dalessandro@reggiani.it>
- cc: html-tidy@w3.org
On Wed, 24 Jan 2001, Elisabetta D'Alessandro wrote:
> Unfortunately the problem remains the same for meta tags.
> I wrote a test file that includes some xhtml errors.
> One of these was just the following:
> <meta name="description" content>
> 
> Tidy has not modified this, and moreover has added this line:
> <meta name="generator" content="HTML Tidy, see www.w3.org">
> 
> When I try to validate the html document these lines are reported as
> mistakes.
Please post your test file: I'm not seeing this problem.
However, I do see another problem when I try the command I gave:
Tidy reads from standard input, and ignores the -asxml option.
(Another anomoly: tidy --help produces no output at all.)
Moving the -asxml to the start of the line works:
deltab@char ~/exp/tidy $ cat testfile.html
<title>test</title>
<meta name="description" content>
deltab@char ~/exp/tidy $ tidy -asxml -f err.txt -m testfile.html
deltab@char ~/exp/tidy $ cat err.txt
Tidy (vers 4th August 2000) Parsing "testfile.html"
testfile.html: Document content looks like HTML 2.0
no warnings or errors were found
deltab@char ~/exp/tidy $ cat testfile.html
<!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 name="generator" content="HTML Tidy, see www.w3.org" />
<title>test</title>
<meta name="description" content="content" />
</head>
</html>
> ----- Original Message -----
> From: "Daniel Biddle" <deltab@osian.net>
> To: "Elisabetta D'Alessandro" <dalessandro@reggiani.it>
> Sent: Wednesday, January 24, 2001 12:16
> Subject: Re: [html-tidy] <none>
> 
> > On Wed, 24 Jan 2001, Elisabetta D'Alessandro wrote:
> >
> > > No, I have used the command
> > > -f err.txt -m filename.htm
> > > Is it wrong?
> >
> > Tidy won't change HTML into XHTML unless you tell it to. Try
> >
> >   tidy -f err.txt -m filename.html -asxml
> >
> > I hope this helps.
> > --
> > Daniel Biddle <deltab@osian.net>
-- 
Daniel Biddle <deltab@osian.net>
Received on Wednesday, 24 January 2001 09:50:45 UTC