W3C home > Mailing lists > Public > www-validator@w3.org > April 2010

Using <a> in a <ul> element in front of <li>

From: Hanno van Dijk - Novisites <hanno@novisites.com>
Date: Thu, 1 Apr 2010 09:07:15 +0200
To: <www-validator@w3.org>
Message-ID: <000001cad169$f6027d50$e20777f0$@com>
Using the following code:

<ul>

                        <a href='nl/content/home'><li><br />Home</li></a>

</ul>

 

Returns the following error after a check:

document type does not allow element "a" here; assuming missing "li"
start-tag

 

used DocType:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

Is this a known issue or a coding flaw, because it works as it should and
looks okay to me!
Received on Thursday, 1 April 2010 13:10:14 GMT

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