Notice: Undefined index: a777d in C:\Websites\Dduckster\index.php on line 3
IE comments before doctype – Dduckster

IE comments before doctype

Spent a good day or two hunting out an IE only bug in a website I was working on. I was using a jQuery plugin for the first time and even when I stripped out my site to the most basic state, it was still slow as hell and not bothering to show what it was supposed to.

By a pure stroke of luck I read a comment on Reddit that Internet Explorer reverts to quirks-mode if you put a comment before the DOCTYPE.
Take out the comment and bang, works straight off the mark. Goddamnit.

Check out this Stack overflow thread for some extra info.

Categories: Web Development

Leave a Reply