
Originally Posted by
dgent
How do I actually fix those errors when the code doesnt actually look like that?
For instance, the WC3 page says the line is...
<li id=""><a href="index.php">Home</a></li>
...when the real source is
<li id="<?php echo $active;?>"><a href="index.php"><?php echo TOP_MENU_HOME;?></a></li>
You could try making the following edit so that you don't have an empty id="" (which is what the validator is complaining about):
Code:
<li<?php echo !empty($active) ? ' id="' . $active . '"' : ''; ?>"><a href="index.php"><?php echo TOP_MENU_HOME;?></a></li>