Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Validation error with txp:comments_help
Not sure if this has been reported – developing a site and using <txp:comments_help />
in the comment_form.
After checking the site for validation errors (doctype XHTML 1.0 Strict) I noticed that the tag produces validation errors due to the use of the ‘&’ instead of ‘&’
FYI.
Offline
Re: Validation error with txp:comments_help
This is the comments_help function:
function comments_help()
{
return ('<a id="txpCommentHelpLink" href="http://rpc.textpattern.com/help/index.php?item=textile_comments&language='.LANG.'" onclick="window.open(this.href, \'popupwindow\', \'width=300,height=400,scrollbars,resizable\'); return false;">'.gTxt('textile_help').'</a>');
}
I only see one ampersand there and it’s escaped. Are you referring to a different ampersand that isn’t escaped and if so, which one?
Offline
Re: Validation error with txp:comments_help
From the Total Validator service:
<li>Found '&' within 'href'. You should use '&' instead:
The default scripting language must be specified for an intrinsic event:
<a id="txpCommentHelpLink"
href="http://rpc.textpattern.com/help/index.php?item=textile_comments&language=en-gb"
onclick="window.open(this.href, 'popupwindow', 'width=300,height=400,scrollbars,resizable'); return
false;">
132 Textile Help
132 </a>
132 to style your comments. Show who you are with a
132 <a href="http://gravatar.com">
132 Gravatar
132 </a>
132 .
132 </li>
Offline
Re: Validation error with txp:comments_help
Fixed just after the TXP 4.0.6 release in SVN changeset 2816
Offline
Re: Validation error with txp:comments_help
OK. I am using 4.06 so that’s why. Thanks Ruud.
Offline