W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2002

Re: why is Tidy changing my 4.0 code into 3.2?

From: Jany Quintard <jany.quintard@free.fr>
Date: Wed, 19 Jun 2002 10:34:32 +0200
To: Malcolm Pateman <malcolm@pateman.fsbusiness.co.uk>
Cc: html-tidy@w3.org
Message-ID: <20020619083432.GA21953@p552c69w>

* Malcolm Pateman [Tue, 18/06/2002 at 12:05 -0400]
> Hi there HTML Tidy People
> I have a simple question re. Tidy (I'm using the Mac BBEdit plugin) ...
> my code is HTML 4.0, but Tidy makes it into 3.2. Can someone help me?
> Here is an example:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
>    "http://www.w3.org/TR/REC-html40/strict.dtd">
> <HTML>
> <HEAD>
>  <TITLE>Testing 123</TITLE>
>  <META NAME="generator" CONTENT="BBEdit 5.0">
> </HEAD>
> <BODY>
> blah blah blah
> </BODY>
> </HTML>

Enclose your text in a paragraph, like:
  <body>
    <p>blah blah blah</p>
  </body>

In strict HTML 4, body does not seem to be allowed to contain directly
PCADAT.

<!ENTITY % block
     "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
      BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">

<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->

Jany

------------------------------------------------------------------------
Jany Quintard               | I always wanted to be somebody,
jany.quintard@bigfoot.com   | but I should have been more specific.
                            |  Lily Tomlin
Received on Wednesday, 19 June 2002 04:34:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:52 GMT