[TYPO3-project-formidable] renderlet CAPTCHA - Bug: Non valid XHTML-Code - SOLUTION

Manuel Rego Casasnovas mrego at igalia.com
Wed Feb 25 09:17:01 CET 2009


Hi Hauke,

On Tue, 24 Feb 2009 22:00:12 +0100
"Hauke Hain" <newgrp at googlemail.com> wrote:
> the following line has to be replaced by
> $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img' 
> src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&amp;".$iSID."' 
> alt='captcha'></img>";
> 
> this one:
> $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img' 
> src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&amp;".$iSID."' 
> alt='captcha'>";

This is not XHTML, you can check it at http://validator.w3.org/.

If you're talking about XHTML you should close all the tags, so the
current solution is right, another option could be something like:
$aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img' 
src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&amp;".$iSID."' 
alt='captcha' />";

Thanks for your comments.

Best regards,
   Rego


More information about the TYPO3-project-formidable mailing list