How can I make this list valid XHTML?
-
There’s a nasty xhtml inconsistency on my site that comes from generating link lists.
This is what a link list currently looks like on my site:
<ul>
<li><a href='https://ubersoft.net' title='Standing on the Necks of Giants.'>Help Desk</a>
<li><a href='https://ubersoft.net/kpanic' title='Life on the Other End of the Stick'>Kernel Panic</a>
</ul>As you can see, the list items do not have a closing
</li>
tag, which is invalid xhtml.However, in the template, based on what I understand about how WordPress works, it out to be putting the closing tag in there:
<ul>
<?php get_links(5, '<li>', '', '</li>', 0, 'name', 0, 0, -1, 0); ?>
</ul>See, both the
<li>
and</li>
tags are specified. Did I parse that wrong? Does anyone know why this isn’t working?
- The topic ‘How can I make this list valid XHTML?’ is closed to new replies.