aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ng/sce.js2
-rw-r--r--test/ng/sceSpecs.js10
2 files changed, 2 insertions, 10 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 ' +
diff --git a/test/ng/sceSpecs.js b/test/ng/sceSpecs.js
index c8a051e8..75c1fbaa 100644
--- a/test/ng/sceSpecs.js
+++ b/test/ng/sceSpecs.js
@@ -58,11 +58,7 @@ describe('SCE', function() {
}
it('should throw an exception when sce is enabled in quirks mode', function() {
- runTest(true, 5, true);
- });
-
- it('should NOT throw an exception when sce is enabled and in IE7 standards mode', function() {
- runTest(true, 7, false);
+ runTest(true, 7, true);
});
it('should NOT throw an exception when sce is enabled and in standards mode', function() {
@@ -74,10 +70,6 @@ describe('SCE', function() {
});
it('should NOT throw an exception when sce is disabled even when in quirks mode', function() {
- runTest(false, 5, false);
- });
-
- it('should NOT throw an exception when sce is disabled and in IE7 standards mode', function() {
runTest(false, 7, false);
});