aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChirayu Krishnappa2013-08-22 16:31:40 -0700
committerChirayu Krishnappa2013-08-22 18:42:21 -0700
commit699f86c535cbc01589d60ea1dc48114a93cd4f19 (patch)
tree7be771d5a0aff708951be055eceff26ebd193a1d /src
parenta671b0423c9ce49e483ec306ff44148e0a37c265 (diff)
downloadangular.js-699f86c535cbc01589d60ea1dc48114a93cd4f19.tar.bz2
revert: fix($sce): allow IE7 standards mode to pass non-quirks mode test
This reverts commit 637c9b1611c5a75a42048ee1c591521c7031751a. (ref #3633 and #3646) 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. angular.module('ie7support', []).config(function($sceProvider) { // Completely disable SCE to support IE7. $sceProvider.enabled(false); });
Diffstat (limited to 'src')
-rw-r--r--src/ng/sce.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/sce.js b/src/ng/sce.js
index 68b97f61..60356097 100644
--- a/src/ng/sce.js
+++ b/src/ng/sce.js
@@ -620,7 +620,7 @@ function $SceProvider() {
// the "expression(javascript expression)" syntax which is insecure.
if (enabled && msie) {
var documentMode = $document[0].documentMode;
- if (documentMode !== undefined && documentMode < 7) {
+ if (documentMode !== undefined && documentMode < 8) {
throw $sceMinErr('iequirks',
'Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks ' +
'mode. You can fix this by adding the text <!doctype html> to the top of your HTML ' +