Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Invalid Markup Error

  • buzzi
  • buzzi's Avatar Topic Author
  • New Member
  • New Member
More
IP: 188.99.194.87 14 years 9 months ago #132 by buzzi
Invalid Markup Error was created by buzzi
Hello!

I'm using Trombinoscope for a few days and it really fits into my needs. But I stumbled across a small issue.

I tried to validate a page containing a Trombinoscope module with validator.w3.org as XHTML 1.0 Transitional and got lots of errors and warnings.

I found two types of errors. The first about not encoding ampersands and the second about wrong delimiters.

The first one I could fix by editing joomla/modules/mod_trombinoscope/tmpl/default.php around line 42:
Code:
$link = htmlspecialchars(modTrombinoscopeHelper::getContactRoute($item->slug, $item->catid));
By surrounding the code for $link with htmlspecialchars the first type of errors vanished.

The second type resulted from an interference with the Joomla e-mail-cloaking plugin.

The following code goes into joomla/modules/mod_trombinoscope/helper.php around line 192:
Code:
$enabled = JPluginHelper::isEnabled('content', 'emailcloak'); if (!$enabled) { $html .= ' <a class="personemail" href="mailto:'.$field.'" title="'.$field.'">'; $html .= ' <span>'.$field.'</span>'; $html .= ' </a>'; } else { $html .= ' <span class="personemail">'.$field.'</span>'; }

Maybe helpful if you're using Trombinoscope and running into the same validation issues.

Thanks for sharing this module!
The following user(s) said Thank You: admin
More
IP: 207.181.196.3 14 years 9 months ago #133 by admin
Replied by admin on topic Re: Invalid Markup Error
Thank you for sharing your finds. I will look into it and correct the necessary parts for the next release.

Olivier.
The following user(s) said Thank You: buzzi
  • buzzi
  • buzzi's Avatar Topic Author
  • New Member
  • New Member
More
IP: 188.99.194.87 14 years 9 months ago #134 by buzzi
Replied by buzzi on topic Re: Invalid Markup Error
Cool! Thanks for your time and efforts!