Out on the The Daily WTF Forums, user dynedain found this gem while doing maintenance on a site that's a huge pile of static HTML files:

$('.bottom_content a').each(function(){ var temp =
              $(this).html().replace('ClientName¬ÆClientService','ClientName®ClientService'); $(this).html(temp); }); 

"This is in a global javascript function that runs on every page. Yes, that's right, the author is using JQuery to look for a specific instance of a UTF error in a specific location on pages, and replacing it with the superscript HTML encoded registration mark.

Of the 400-500 HTML files that trigger this global script, only about 40-50 of them actually contain the specific dom elements being targeted. And those all have the exact same HTML structure.

In the amount of time it took the author to write this script, they could have just done a global search and replace of the source HTML files to correct the UTF error to begin with."

As far as how this could exist, C-Octothorpe, in my opinion, explained it best: If they did a find-and-replace, they wouldn't be able to put "jQuery" on their resume.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!