Nidelven IT - All about Python, Zope & Plone - and Open Source!

Here you'll find issues related to our services. Mostly about Python, Zope and Plone, as well as hosting-related issues.

"Keeping IT real"

Older entries

Atom - Subscribe - Categories
Previous | Next

If they're serious about standards..

So, today after some debate I had to deal with Internet Explorer and a Javascript image rotator that didn't work as it should in IE 9.

The site is somewhat old, so I tried different X-UA-Compatible headers..

After trying different settings, main_template has been customized and modified to include a junk define statement which sets the HTTP response header

<html xmlns="
      tal:define="lang language; xyz python:request.RESPONSE.setHeader('X-UA-Compatible', 'IE=edge')"

and things work swimmingly well. I tried looking at the jquery package (this is a rather old setup) and it was 1.1.2. Bumping it to 1.1.4 did not fix anything.

The MS docs explicitly says that edge mode shouldn't be used in anything but testing, but it does the trick here.. and when I think about it, IE should have two "edge" modes, "edge" and "bleedingedge". Why you say? Because browsers these days update rapidly, and bleedingedge could be considered alpha - until browser makers *together* find a "contract" on how an HTML, Javascript or CSS element should behave. That way we can avoid further fragmentation of how standards are implemented.

I don't know how this works with other browsers, but seems obvious to me that this is a good way to deal with standards-in-motion and frequent browser updates.

If that doesn't work, then some common HTML/Javascript/CSS library which bridges the gap between implementations will be sorely needed, and maybe that's how it will end up in the end.

[Permalink] [By morphex] [Python, Zope, Plone - and anything loosely related to that (Atom feed)] [2012 15 Mar 13:07 GMT+2]


Modern Plone versions do this for you

By: Alex Limi

Just wanted to note that any modern (4.x) version of Plone will do this for you automatically, unless I'm mis-remembering.

And chrome frame too

By: Morten W. Petersen

Yeah, OK. I see that's in the github repository's main_template yes. I also read up on chrome=1 now, and that's a great feature.. now I feel a bit more optimistic! :)

Add comment (text format)


A passphrase is required to comment on this weblog. It is required to make sure that bots aren't doing automatic spamming. It is: nit is the best!.