简体   繁体   中英

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

Once 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 have already added <!doctype html> but to no avail.
  • I also need to support IE7 (sob).

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

The minimum bar for $sce is IE8 in standards 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);
});

这已经回答了,但是有人可能会发现这很有用:在IE(8)中关闭兼容性视图 - 地址栏后面的“破页”图标

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM