[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HTML syntax errors



On Thu, Jan 03, 2002 at 05:19:20PM -0500, James A. Treacy wrote:
> There is a single error in Bugs/index.en.html I didn't look into.

Actually, we should simply use a better validator :)

% tidy -eq index.en.html
[...]
line 122 column 4 - Warning: missing </small> before <ul>
line 123 column 7 - Warning: inserting implicit <small>
line 127 column 4 - Warning: missing </small> before <li>
line 127 column 7 - Warning: inserting implicit <small>
line 131 column 4 - Warning: missing </small> before <li>
line 131 column 7 - Warning: inserting implicit <small>
line 137 column 4 - Warning: missing </small> before <li>
line 137 column 7 - Warning: inserting implicit <small>
line 143 column 4 - Warning: missing </small> before <li>
line 143 column 7 - Warning: inserting implicit <small>
line 152 column 4 - Warning: missing </small> before <li>
line 152 column 7 - Warning: inserting implicit <small>
line 162 column 3 - Warning: discarding unexpected </small>
[...]

These warnings are much clearer.

> There are quite a number of problems in doc/maint-guide and
> doc/developers-reference

That's like doc/manuals, generated from DebianDoc-SGML.

> I have no idea what the author intended with the html for the following:
> ** Errors validating /org/www.debian.org/www/ports/alpha/news.en.html: ***
> Line 255, character 26:  document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

Once again,

% tidy -eq news.en.html
[...]
line 255 column 7 - Warning: missing </b> before <div>
line 255 column 7 - Warning: trimming empty <b>
line 255 column 7 - Warning: trimming empty <p>
line 255 column 27 - Warning: inserting implicit <b>
line 258 column 7 - Warning: discarding unexpected </b>
line 258 column 11 - Warning: replacing element </p> by <br>
line 258 column 11 - Warning: inserting implicit <br>
[...]

> ports/powerpc/inst/apus.en.html and ports/powerpc/inst/prep.en.html
> have a tag <prgn>. No idea what that is.

That's Chris mixing DebianDoc-SGML with HTML :) The tag is for program
names, and can be replaced with <tt>, <code>, etc.

> ports/powerpc/inst/install.en.html includes lines like the following:
> <tr></tr><tr bgcolor="#f3f3f3">
>   <td><strong>Apple</strong></td>
>   <td></td>
> </tr>
> A little strange, but anything wrong with an empty row?

Yes, all of them (<table>, <tr>, <td>) are mandatory...

% tidy -eq install.en.html
[...]
line 134 column 1 - Warning: trimming empty <p>
line 139 column 5 - Warning: missing <td>
line 154 column 5 - Warning: missing <td>
line 167 column 5 - Warning: missing <td>
line 173 column 5 - Warning: missing <td>
line 178 column 5 - Warning: missing <td>
line 183 column 5 - Warning: missing <td>
line 193 column 5 - Warning: missing <td>
line 201 column 5 - Warning: missing <td>
[...]

I'll fix some of these if I have the patience to wait -- I _again_ can't
reach klecker from home, and have to route ssh (cvs) through pandora...
<grumble>

-- 
     2. That which causes joy or happiness.



Reply to: