This is what WinIE does (Mozilla too)
Created attachment 8726 [details] Patch
Comment on attachment 8726 [details] Patch + if (!document()->inCompatMode() && + document()->documentElement() == this) I would put those on single lines -- they're not too long. r=me