In article <3B6F257A.60007@nospam>, nospam@nospam wrote:
> In the HTML Tidy configuration file, I'd remove
>
> enclose-block-text: yes
The Strict DTD doesn't allow character data directly inside <body>. Do
you have an alternative (automated) solution for wrapping text in <p>
where needed?
> The default is no, and the feature is broken. It will add P elements in
> lots of places they are not needed,
Usually wrapping text in <p> doesn't hurt.
> For example, it changes
>
> <td>This is fine strict markup</td> and
> <li>This is fine strict markup</td>
>
> to
>
> <td><p>this is fine strict markup</p></td>
I agree putting <p> inside a simple <td> is likely to be silly.
> <li><p>this is fine strict markup</p></li>
Doesn't look serious considering that lists on www.mozilla.org usually
have whole sentences in each item.
> Since your Perl script resets the document declaration anyway, you might
> want to change this to the documented
>
> doctype: omit
OK.
> Also $quot; is really only needed when you put a double quote inside a
> double quoted attribute. My preference is for "quote-marks: no".
I tried with other quote settings and Tidy broke my Unicode quotes.
Besides, when migrating quotes to Unicode, it is easier to search for
", since the search doesn't match attribute delimiters.
--
Henri Sivonen
[EMAIL PROTECTED]
http://www.clinet.fi/~henris/