[$ sce: iequirks] Strict contextual escaping does not support Internet Explorer version <9 in quirks mode

As soon as I upgrade AngularJS from 1.0.7 to 1.2.0rc1, I get the following error:

 [$sce:iequirks] Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode 
  • I already added <!doctype html> , but to no avail.
  • I also need to support IE7 (sob).
+4
source share
2 answers

From the github issue related to this issue - $sce does not support IE7 in standard mode.

The minimum bar for $ sce is IE8 in standard mode. IE7 standards mode is not supported. If you must support IE7, you should disable $ sce completely.

To disable $sce :

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

This was answered, but someone may find it useful: in IE (8), disable the compatibility view - the โ€œbroken pageโ€ icon after the address bar

+2
source

Source: https://habr.com/ru/post/1499564/


All Articles