Firefox 4 and IE 8 show blank pages

I ran into a interesting problem with an internal web application I built several years ago. It would only show a blank page in IE8 and above and in Firefox 4 and greater while other versions of IE8 and Firefox showed the page correctly. There were no errors on the newer browsers. After a bit of debugging the problem was found in these lines (ignore the ‘-‘ in the tags as it was the only way I could get them to display):

<-TITLE> Discovery Streaming Video Access<-/ TITLE>

If I join the two lines together I get

<-TITLE>Discovery Streaming Video Access<-/ TITLE>

Notice the space in the closing title tag. The older browsers would ignore this space while the newer ones would not and therefore not see the closing TITLE tag. Thus all the page source was put into the title and the browser would display nothing while it was waiting for the rest of the page to come from the server.