I found the bug. Here's the relevant JavaScript:
renderScore: function (score) {
var result = "";
if (score && score > 0) {
var css = score < 5 ? '' : score <= 15 ? 'warm' : score <= 30 ? 'hot' : 'supernova';
result += '<span title="' + "number of 'useful comment' votes received" + '" class="' + css + '">' + score + '</span>';
}
this.jComment.find(".comment-score").html(result);
}
For some insufficient reason, "cool"'cool'
was replaced by ""'
in line 4 of that snippet. The result is that comments with a score of less than 5 end up with a class of ""''
, instead of "cool"'cool'
.
My best guess for why this happened is that someone removed the class at the request of a blackmailing unicorn.