Incomplete/Broken HTML output

A few days ago an ApexLib user from Norway contacted me and told me that the framework doesn’t work and he is getting JavaScript errors.

I looked at the provided HTML output and I was scratching my head, because the output looked really strange and I couldn’t really come of with a good reason why the JavaScript code was broken. Another wired thing was that it worked sometimes for the page and sometimes not, the error was depending on the data which was displayed! Continue reading