@@ -199,8 +199,7 @@ function $SceDelegateProvider() {
199199 return resourceUrlBlacklist ;
200200 } ;
201201
202- this . $get = [ '$log' , '$document' , '$injector' , function (
203- $log , $document , $injector ) {
202+ this . $get = [ '$injector' , function ( $injector ) {
204203
205204 var htmlSanitizer = function htmlSanitizer ( html ) {
206205 throw $sceMinErr ( 'unsafe' , 'Attempting to use an unsafe value in a safe context.' ) ;
@@ -731,18 +730,15 @@ function $SceProvider() {
731730 * sce.js and sceSpecs.js would need to be aware of this detail.
732731 */
733732
734- this . $get = [ '$parse' , '$document ' , '$sceDelegate' , function (
735- $parse , $document , $sceDelegate ) {
733+ this . $get = [ '$parse' , '$sniffer ' , '$sceDelegate' , function (
734+ $parse , $sniffer , $sceDelegate ) {
736735 // Prereq: Ensure that we're not running in IE8 quirks mode. In that mode, IE allows
737736 // the "expression(javascript expression)" syntax which is insecure.
738- if ( enabled && msie ) {
739- var documentMode = $document [ 0 ] . documentMode ;
740- if ( documentMode !== undefined && documentMode < 8 ) {
741- throw $sceMinErr ( 'iequirks' ,
742- 'Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks ' +
743- 'mode. You can fix this by adding the text <!doctype html> to the top of your HTML ' +
744- 'document. See http://docs.angularjs.org/api/ng.$sce for more information.' ) ;
745- }
737+ if ( enabled && $sniffer . msie && $sniffer . msieDocumentMode < 8 ) {
738+ throw $sceMinErr ( 'iequirks' ,
739+ 'Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks ' +
740+ 'mode. You can fix this by adding the text <!doctype html> to the top of your HTML ' +
741+ 'document. See http://docs.angularjs.org/api/ng.$sce for more information.' ) ;
746742 }
747743
748744 var sce = copy ( SCE_CONTEXTS ) ;
0 commit comments