aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/compileSpec.js
diff options
context:
space:
mode:
authorAlexandre Potvin Latreille2013-12-19 12:21:14 +0000
committerPete Bacon Darwin2013-12-19 12:22:58 +0000
commitc7a1d1ab0b663edffc1ac7b54deea847e372468d (patch)
tree575c6c6263d4b54df940a7c908adc0dddf0a6f34 /test/ng/compileSpec.js
parent26d43cacdc106765bd928d41600352198f887aef (diff)
downloadangular.js-c7a1d1ab0b663edffc1ac7b54deea847e372468d.tar.bz2
fix($compile): remove invalid IE exceptional case for `href`
It appears that this exceptional case was only valid for IE<8 and that for IE>=8 it was actually causing a bug with the `ng-href-attr` directive on `<a>` elements. Closes #5479
Diffstat (limited to 'test/ng/compileSpec.js')
-rwxr-xr-xtest/ng/compileSpec.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js
index 1b98cd58..39e23695 100755
--- a/test/ng/compileSpec.js
+++ b/test/ng/compileSpec.js
@@ -4243,7 +4243,13 @@ describe('$compile', function() {
expect(element.attr('test2')).toBe('Misko');
expect(element.attr('test3')).toBe('Misko');
}));
-
+
+ it('should work with the "href" attribute', inject(function($compile, $rootScope) {
+ $rootScope.value = 'test';
+ element = $compile('<a ng-attr-href="test/{{value}}"></a>')($rootScope);
+ $rootScope.$digest();
+ expect(element.attr('href')).toBe('test/test');
+ }));
it('should work if they are prefixed with x- or data-', inject(function($compile, $rootScope) {
$rootScope.name = "Misko";