I have a large legacy web app that uses HTC behavior in CSS. For example,
.tabButtons
{
BEHAVIOR: url(/Echo/common/behaviors/tabPanel.htc);
}
This will work in IE 11, but I must go to Compatibility View Settings and add the domain.
It is possible to use CSS behavior
another way?
I tried to put
<meta http-equiv="X-UA-Compatible" content="IE=5">
at the top of the page head. This seems to invoke quirks mode, because when I do alert("compatMode = " + document.compatMode)
then it says BackCompat.
However the CSS behavior still does not work. It does not even attempt to fetch the file tabPanel.htc
.
What else can I try?
Try add the following meta tag near the top of the page to opt into Internet Explorer 9 behavior:
Source: https://msdn.microsoft.com/en-us/library/hh801216(v=vs.85).aspx
You could always try using a strict doctype, rather than transitional. i.e:
Though these are workarounds, revising the code would be the best solution.