Announcement

Collapse
No announcement yet.

Invalid HTML in Mega Menu Layout

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Invalid HTML in Mega Menu Layout

    YASB! The following code in Mega Menu Layout generates invalid HTML because the id attribute and the following href attribute have no white space between them.
    Code:
            echo '<li> <a id="main-link'.$MoreLinksIndex.'"';
            echo 'href="#" onclick="return false;" style="cursor: default;" onmouseover="mmOpen('.$MoreLinksIndex.');" onmouseout="mmCloseTime();"';
    Fix by adding a space before the href:
    Code:
            echo '<li> <a id="main-link'.$MoreLinksIndex.'"';
            echo ' href="#" onclick="return false;" style="cursor: default;" onmouseover="mmOpen('.$MoreLinksIndex.');" onmouseout="mmCloseTime();"';
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey
Working...
X