Hi Everyone,
I have been working on several of my sites to get them to validate on w3c.
Most of my issues have been addressed except for a major issue related to the DNN DarkKnight skin and Mega Menu.
It looks like the core is doing something to the DNNMega.xslt file processing and I'm not sure where to correct it. As you will see from this snippet found in the DNNMega.xslt file, the image tag is closed properly, yet somewhere in the core, this is getting munged pretty badly with the image closing tag being removed for some reason. This is causing a cascading error effect:
DNNMega.xslt snippet:
<xsl:choose>
<xsl:when test="@enabled = 1">
<a href="{@url}">
<span>
<xsl:if test="@icon">
<img src="{@icon}" class="mmIcon" />
</xsl:if>
<xsl:value-of select="@text" />
<xsl:if test="node and $nodeType = 'root'">
<img src="{$ManifestPath}Images/child-arrow.png" class="mmArrow" alt="Down arrow" />
</xsl:if>
</span>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:if test="@icon">
<img src="{@icon}" />
</xsl:if>
<span>
<xsl:value-of select="@text" />
</span>
</xsl:otherwise>
</xsl:choose>
Can someone please point me in the right direction. I need to have these sites validate for clients and am stuck now.
Please help.
PS - Whomever is responsible for the DNNMega Menu, they should also be aware of one problem related to this that is in the core and in my opinion should be addressed:
Original stock version with extra slash that needs to be removed. Notice the slash between "{$ManifestPath}" and "Images"
<img src="{$ManifestPath}/Images/child-arrow.png" class="mmArrow" alt="Down arrow" />
Corrected slash version:
<img src="{$ManifestPath}Images/child-arrow.png" class="mmArrow" alt="Down arrow" />