To summarise in brief: * HTML5 doctype and <meta> tag added to <head> * required and pattern attributes added to input tags * table replaced with an ordered list * Added padding to the #log li elements * Replaced the local version of jQuery with the Google CDN version * External links given rel="external" attribute, instead of target="_blank" * jQuery event delegation used to open rel="external" links in new window Added some tiny edits to server.js too: * var added before HOST and PORT variables. * Opening and closing braces added to if statements, to keep jslint * happy
The fu.js code wasn't checking to see if a request method was HEAD. That resulted in it sending a body to a head request. This in turn resulted in breaking the spec which the underlying Node library didn't like. In turn, this resulted in an uncaught exception which crashed the server. Now if the request type is HEAD, it does the right thing.
… of fu.js (process.cat)