EES triggering IE compatibility mode?


(Andrew Harris) #1

Hi there, hoping someone else has run into, and resolved, this one.

 

When we implement EES according to the guide the first line of the source code of a rendered page displays two tab characters before the !DOCTYPE declaration. I'm told this is not good, as it triggers compatibility mode for some IE users*.

 

I have experimented with a variation of the published instructions that moves the !DOCTYPE declaration ahead of the EES code. This shifts the whitespace to somewhere that it causes less (no?) harm… eg:

 

<!DOCTYPE html> EES code
<html> … rest of the page

 

So, I'm wondering…

  1. Has anyone else had this problem?
  2. Is my solution likely to cause any issues (seems solid enough to me)
* we're getting reports of problems, but I'll be honest - I can't reproduce this problem, I'm going on user reports, so there may be some other issue at play. Does anyone know exactly where this whitespace-before-doctype situation comes from? - I can't find a definitive answer.
 
As always, thanks in advance!
(v4.18.4)
 
yay - my 100th post :-)

(bm@iucr.org) #2

See this post:http://forums.squizsuite.net/index.php?showtopic=12224, which looks like the same issue. This was resolved in our case with an upgrade to 4.18.6.

 

Cheers

Brian