[$ SCE:iequirks]严格的语境转义不支持Internet Explorer版本< 9怪癖模式 [英] [$sce:iequirks] Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode

查看:323
本文介绍了[$ SCE:iequirks]严格的语境转义不支持Internet Explorer版本< 9怪癖模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我升级AngularJS从1.0.7至1.2.0rc1我收到以下错误:

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


  • 我已经添加了&LT;!DOCTYPE HTML&GT; ,但无济于事。

  • 我还需要支持IE7(抽泣)。

    • I have already added <!doctype html> but to no avail.
    • I also need to support IE7 (sob).
    • 推荐答案

      GitHub的问题相关这个问题 - $ SCE 做的不可以支持IE7的标准模式。

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

      为$ SCE的最低杆是在IE8标准模式。 IE7标准模式
        不支持。如果你必须支持IE7,你应该禁用$ SCE
        完全。

      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.

      要禁用 $ SCE

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

      这篇关于[$ SCE:iequirks]严格的语境转义不支持Internet Explorer版本&LT; 9怪癖模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆