- From: <paul.a.gates@us.abb.com>
- Date: Mon, 16 Feb 2004 13:53:27 -0500
- To: www-validator@w3.org
Hi All,
I think I know the answer to this, but I would like confirmation.
I have the following snippet in a web page marked as XHTML 1.0
Transitional:
<ol>
<a href="somelink.html" ....>
<li value="1">List Item 1</li></a>
<a href="somelink.html" ....>
<li>List Item 2</li></a>
|
|
<a href="somelink.html" ....>
<li>List Item n</li></a>
</ol>
When I try to validate it, I get:
1. Line 20, column 23: document type does not allow element "a" here;
assuming missing "li" start-tag
<a href="somelink.html">
^
2. Line 21, column 16: document type does not allow element "li" here
(explain...).
<li value="1">List Item 1</li></a>
^
3. Line 23, column 6: document type does not allow element "li" here
(explain...).
<li>List Item 2</li></a>
^
4. Line 25, column 6: document type does not allow element "li" here
(explain...).
<li>List Item n</li></a>
^
5. Line 26, column 4: end tag for "li" omitted, but OMITTAG NO was
specified
</ol>
^
6. Line 20, column 0: start tag was here (explain...).
<a href="somelink.html">
I assume that that means that an ordered list cannot contain an anchor
around it's list items. I can switch the order, but it will not give me
the full effect I was looking for.
Thanks,
Paul Gates
Received on Monday, 16 February 2004 13:59:24 UTC