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

淺唱寂寞╮ 提交于 2019-12-12 07:19:20

问题


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).

回答1:


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);
});



回答2:


This has been answered, but somebody might find this useful: in IE(8) turn off Compatibility View - that "broken page" icon after address bar



来源:https://stackoverflow.com/questions/18506458/sceiequirks-strict-contextual-escaping-does-not-support-internet-explorer-ve

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!