@@ -469,6 +469,10 @@ describe('$compile', function() {
469
469
} ) ) ;
470
470
471
471
// NOTE: This test may be redundant.
472
+ // Support: Edge 14+
473
+ // An `<svg>` element inside a `<foreignObject>` element on MS Edge has no
474
+ // size, causing the included `<circle>` element to also have no size and thus fails an
475
+ // assertion (relying on the element having a non-zero size).
472
476
if ( ! isEdge ) {
473
477
it ( 'should handle custom svg containers that transclude to foreignObject' +
474
478
' that transclude to custom svg containers that transclude to custom elements' , inject ( function ( ) {
@@ -1127,7 +1131,8 @@ describe('$compile', function() {
1127
1131
expect ( element ) . toHaveClass ( 'class_2' ) ;
1128
1132
} ) ) ;
1129
1133
1130
- if ( ! msie || msie > 11 ) {
1134
+ // Support: IE 9-11 only
1135
+ if ( ! msie ) {
1131
1136
// style interpolation not working on IE (including IE11).
1132
1137
it ( 'should handle interpolated css style from replacing directive' , inject (
1133
1138
function ( $compile , $rootScope ) {
@@ -10698,6 +10703,8 @@ describe('$compile', function() {
10698
10703
expect ( element . text ( ) ) . toBe ( '102030' ) ;
10699
10704
expect ( newWatcherCount ) . toBe ( 3 ) ;
10700
10705
10706
+ // Support: IE 11 only
10707
+ // See #11781 and #14924
10701
10708
if ( msie === 11 ) {
10702
10709
expect ( element . find ( 'ng-transclude' ) . contents ( ) . length ) . toBe ( 1 ) ;
10703
10710
}
@@ -10719,9 +10726,10 @@ describe('$compile', function() {
10719
10726
expect ( element . attr ( 'src' ) ) . toEqual ( 'http://example.com/image2.png' ) ;
10720
10727
} ) ) ;
10721
10728
10729
+ // Support: IE 9 only
10722
10730
// IE9 rejects the video / audio tag with "Error: Not implemented" and the source tag with
10723
10731
// "Unable to get value of the property 'childNodes': object is null or undefined"
10724
- if ( ! msie || msie > 9 ) {
10732
+ if ( msie !== 9 ) {
10725
10733
they ( 'should NOT require trusted values for $prop src' , [ 'video' , 'audio' ] ,
10726
10734
function ( tag ) {
10727
10735
inject ( function ( $rootScope , $compile , $sce ) {
@@ -11154,7 +11162,9 @@ describe('$compile', function() {
11154
11162
} ) ) ;
11155
11163
} ) ;
11156
11164
11157
- if ( ! msie || msie >= 11 ) {
11165
+ // Support: IE 9-10 only
11166
+ // IEs <11 don't support srcdoc
11167
+ if ( ! msie || msie === 11 ) {
11158
11168
describe ( 'iframe[srcdoc]' , function ( ) {
11159
11169
it ( 'should NOT set iframe contents for untrusted values' , inject ( function ( $compile , $rootScope , $sce ) {
11160
11170
element = $compile ( '<iframe srcdoc="{{html}}"></iframe>' ) ( $rootScope ) ;
0 commit comments