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">
<link href="TxtMan.css" rel="stylesheet" type="text/css">
<body class="ind">
<li>Part A</li>
<li>Part B</li>
<li>Part A</li>
<li>Part B</li>

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:52 UTC