W3C home > Mailing lists > Public > www-validator@w3.org > December 2001

Re: Small validation problem with validator.w3.org

From: Liam Quinn <liam@htmlhelp.com>
Date: Tue, 11 Dec 2001 18:10:08 -0500 (EST)
To: Eli <nutbar@innocent.com>
cc: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33L2.0112111808300.13991-100000@localhost.localdomain>
On Fri, 7 Dec 2001, Eli wrote:

> I noticed that the validator, when it's validating XHTML 1.0
> transitional, seems to complain about nested unordered list tags (<ul>).
> I checked up on the HTML 4.01 specs, and it says that nested lists are
> allowed.  It doesn't mention anything about nesting 2 lists of the same
> type (nesting a <ul> inside a <ul>), but I'd assume that it should be
> valid.

You're probably nesting the lists incorrectly.  The following is invalid:

<ul>
  <ul>
    <li>...</li>
  </ul>
</ul>

A "ul" element cannot directly contain anything except "li" elements.  So
the above example should be

<ul>
  <li>
    <ul>
      <li>...</li>
    </ul>
  </li>
</ul>

-- 
Liam Quinn
Received on Tuesday, 11 December 2001 18:10:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:00 GMT