Hi,
CSS error are repaired now.
However, still HTML validation errors due to wrong use of ampersand?
W3C validation service says:
This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'.
I can see in the reports
<li class="ux-menu-item-main"><a href="/index.php?option=com_content&view=frontpage&Itemid=24" class="ux-menu-link-first current">Beginpagina</a>
</li>
I do not exactly understand since this is the URL which I can see in my browsers (Opera, FF and IE7)
Your module is working just fine in all 3 browsers. But I would like to see a correct validation for my website. Is there a PHP in your module which makes the translation of '&' into '&' not correctly?
in 'class.JoomlaUtils.php in between line 88 to 112 I discovered:
Code: |
function getLink($link, $xhtml = false, $clearItemId = true)
{
if (!AriJoomlaUtils::isJoomla15())
{
if (function_exists('sefRelToAbs')) $link = sefRelToAbs($link);
[color=#FF0000]if (!$xhtml) $link = str_replace('&', '&', $link);[/color]
}
else
{
$app = &JFactory::getApplication();
$router = &$app->getRouter();
if($router->getMode() == JROUTER_MODE_SEF && $clearItemId)
{
$itemidPos = strpos($link, 'Itemid');
if ($itemidPos !== false)
{
$link = preg_replace('/Itemid(?:=[^&;]*)?/', '', $link);
}
}
$link = JRoute::_($link, $xhtml);
}
return $link;
}
|
I am using Joomla without SEF URL. If I can read PHP the read line should give '&' instead of '&'.
What is going wrong here?
Best Regards,
Anne