diff options
| author | justinrknowles | 2013-08-18 14:01:34 -0400 | 
|---|---|---|
| committer | Igor Minar | 2013-08-21 01:38:39 -0700 | 
| commit | 637c9b1611c5a75a42048ee1c591521c7031751a (patch) | |
| tree | 9d30973534566743a12e96cbb5b7a0f337c9a759 /src | |
| parent | ad77d67cb7e1bc473899b99251108991f2c76f7f (diff) | |
| download | angular.js-637c9b1611c5a75a42048ee1c591521c7031751a.tar.bz2 | |
fix($sce): allow IE7 standards mode to pass non-quirks mode test
Changes documentMode test version to 7 in order to support IE 8 in IE 7 standards
mode while still protecting against quirks mode.
documentMode returns the following values:
5 - quirks mode,
7 - IE 7 standards mode,
8 - IE 8 standards mode.
Closes #3633
Closes #3646
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/sce.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/ng/sce.js b/src/ng/sce.js index 60356097..68b97f61 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 < 8) { +      if (documentMode !== undefined && documentMode < 7) {          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 ' + | 
