iframexhtml-1.0-strictsid

How to fix w3.org validation error: There is no attribute "sid" or, Element "iframe" undefined?


i am trying to validate someone else's code here and they are using the xhtml1-strict DOCTYPE.

i am almost there; except for few erors...

For the SID attribute issue, this is what they have:

    <li class="drop" sid="nav_products"> <span class="head">Our Products</span>
    <ul id="nav_products" style="display: none;">

      <li><a href="/products/itemNumOne.php">Toys</a></li>

      <li><a href="/products/itemNumTwo.php">Tools</a></li>

      <li><a href="/products/itemNumThree.php">Beauty</a></li>

      <li><a href="/products/itemNumFour.php">Electronics</a></li>

    </ul>
    </li>

And because of the IFRAME error, i am also getting 2 more errors:

Can anyone PLEASE help me fix these errors? I am not an expert in this area, so you will have to explain a bit the solutions. Thanks a lot in advance for your time and help!!!


Solution

  • The question to ask is probably why the previous developer was using "sid" in the first place. As far as I know, attribute "sid" will never validate in any XHTML doctype, so it's a good idea to change it to "class" or "id", and then change the code that relies on "sid" accordingly.