Per T205581#
4768548 cached HTML might render a comment with
double brackets in the text. The CSS selector should not apply
there so a new class is used.
Using a BEM convention for the time being. This class can be
removed in future if needed.
Bug: T205581
Change-Id: If1552d6ddd4729b8beca45a1ca19ec6ce36e6118
$formatted = self::formatComment( $comment, $title, $local, $wikiId );
if ( $useParentheses ) {
$formatted = wfMessage( 'parentheses' )->rawParams( $formatted )->escaped();
+ $classNames = 'comment';
+ } else {
+ $classNames = 'comment comment--without-parentheses';
}
- return " <span class=\"comment\">$formatted</span>";
+ return " <span class=\"$classNames\">$formatted</span>";
}
}
content: '. .';
}
-.comment,
+.comment--without-parentheses,
.mw-changeslist-links,
.mw-diff-bytes,
.mw-tag-markers,