Chrome simply refuses to run any Javascript. It shows a Failed to load resource in the debug panel, and it highlights this line:
<script src="js/mootools/core-1.4.5-full-nocompat.js" type="text/javascript"></script>
Internet Explorer, Firefox and Opera all run the Javascript appropriately. I’m using a PHP page where the content is captured to a string then returned after having functions performed on it.
The problem was that the page wasn’t properly reporting the
Content-Lengthheader before returning the HTML (which is something I shouldn’t have to do, seeing as I never touched it). With the captured HTML in the string $html: