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

Suspected bug in htmltidy

From: John M Collins <jmc@xisl.com>
Date: Sun, 9 Jun 2002 10:14:09 -0400 (EDT)
Message-ID: <3D0362A5.7080904@xisl.com>
To: html-tidy@w3.org
Running the version for Linux/x86 (vers 1st January 2002; built on Jan 
27 2002, at 23:33:07)

I think it gives spurious warnings about "Missing <li>" and inserts 
spurious ones if you use "</li>" with nested lists.

Consider (this is mangled from an auto-generated index):

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Contents</title>
<link href="TxtMan.css" rel="stylesheet" type="text/css">
</head>
<body class="ind">
<ol>
<li>First</li>
<ol>
<li>Part A</li>
<li>Part B</li>
</ol>
<li>Second</li>
<ol>
<li>Part A</li>
<li>Part B</li>
</ol>
</ol>
</body>
</html>

Htmltidy bleats about "missing <li>" at the two marked "<ol>"s and 
inserts unwanted "<li>"s in front. All is OK if you skip the "</li>"s.

I suppose you'll tell me to change my index program now.....

-- 
John Collins  (jmc @ xisl.com) Xi Software Ltd www.xisl.com Tel: +44 1707 886100
Direct Tel: +44 (0)1707 886110 (W) (0)1707 883174 (H) +44 (0)7799 113162 (Mob) 
Received on Monday, 10 June 2002 17:41:32 GMT

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