On 04/15/2014 06:09 AM, Guillaume "Louis-Marie" Delhumeau wrote:
-----
Internet Explorer meta tag
-----
Bootstrap defines the following meta-tag:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
It is used to prevent Internet Explorer from using the compatibility mode
(which is the default setting on intranet sites). As before, this meta tag
is not valid. It is interresting to notice that even the bootstrap site is
not valid, because of that.
In my opinion, we need this meta-tag and we should ignore this HTML5
violation.
There is another option, which is to send this in a HTTP header instead.
Since we can set headers from within the XWiki application and don't
depend on .htaccess configurations, that's easy to do.
We could even set it in exactly the same place where the meta element is
currently generated (htmlheader.vm), to ensure that the exact same pages
are affected.
Or we could add it in a common place where all rendering takes place,
for example Utils.parseTemplate, which ensures that the header will be
present in custom skins, or when the htmlheader.vm is not being used.
--
Sergiu Dumitriu
http://purl.org/net/sergiu