To second OGB's comment. I have found that while writing XHTML for IE that 'quirks' mode will give you nasty problems with things such a document.documentElement or document.getElementById. Also you cannot have an xml declaration on the first line, the first line MUST be the DOCTYPE, as noted above.