Radim Novotny
Radim Novotny

Reputation: 335

How to remove/replace meta http-equiv="X-UA-Compatible" tag in Diazo

I'm working on theming Plone site using Diazo. Unthemed site is based on Sunburst theme so this tag is inserted by main template to the /html/head:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

My design contains

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

so I need to replace this tag only. I want to preserve other meta tags generated by Plone.

These rules does not work for me:

<drop content="/html/head/meta[@http-equiv='IE=edge']" />
<after theme-children="/html/head">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</after>

What rules should I use?

Upvotes: 2

Views: 1372

Answers (1)

optilude
optilude

Reputation: 3548

You've mixed up the attributes referenced in your rule. Try:

<drop content="/html/head/meta[@http-equiv='X-UA-Compatible']" />

instead

Upvotes: 3

Related Questions