AngularJS and quirks mode: blank screen on IE8 +

I am working on an Angular project that will be included in an HTML page that I do not control. In fact, I have access only to what is inside the element <body>.

There are many limitations that are not easy to handle: 1- I cannot change the doctype: 2- I cannot delete this meta tag: 3- The application must load the XML file

I managed to overcome points 1 and 3, but point 2 gives me a headache! Here is the error I get when testing IE8 + (works fine in IE7 and other browsers):

[$ sce: iequirks] http://errors.angularjs.org/1.2.12/ $ sce / iequirks IE8 in quirks mode is not supported error in component $ sce Strict contextual screening does not support Internet Explorer version <9 in quirks mode. You can fix this by adding text to the top of your HTML document. See http://docs.angularjs.org/api/ng for more details . $ Sce.

I found many solutions on the forums, but so far no one has worked ... I especially hoped that disabling $ sceProvider (code below) will make the application work on IE8 +, but this is not so:

angular.module('ie7support', []).config(function($sceProvider) {
// Completely disable SCE to support IE7.
$sceProvider.enabled(false);`
});

I even tried to add <!doctype html>at the beginning of my HTML document, which I was not allowed to, but which I had done only for the test, and it did not solve the problem.

Any help or suggestions that are much appreciated because I am really stuck right now ...

+3
3

!

"ie7support" :

angular.module('ie7support', []).config(function($sceProvider) {
// Completely disable SCE to support IE7.
$sceProvider.enabled(false);
});

: http://docs.angularjs.org/api/ng. $sce

, !

+3

All Articles