Alas, 2.661
still does not produce valid XHTML in the Comment-Preview window. The problem is that a comment being previewed does not yet have a CommentID.
This fixes the problem:
CODE
--- lib/MT/Template/Context.pm.orig Thu Jan 15 14:36:13 2004
+++ lib/MT/Template/Context.pm Thu Jan 15 17:33:55 2004
@@ -1184,7 +1184,7 @@
my $cgi_path = MT::ConfigMgr->instance->CGIPath;
$cgi_path =~ s#([^/])$#$1/#;
my $comment_script = MT::ConfigMgr->instance->CommentScript;
- return sprintf(qq(<a target="_blank" href="%s%s?__mode=red&id=%d">%s</a>),
+ if($c->id){
+ return sprintf(qq(<a href="%s%s?__mode=red&id=%d">%s</a>),
$cgi_path, $comment_script, $c->id, $name);
+ } else {
+ return sprintf(qq(<a href="%s">%s</a>), $c->url, $name);
+ }
} elsif ($show_email && $c->email) {
my $email = remove_html($c->email);
I folded this into the patch file mentioned above (which now applies to 2.661).