Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

test(booleanAttrsSpec): add unit test for IE11 URL parsing failure #13458

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions test/ng/directive/booleanAttrsSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,16 @@ describe('ngHref', function() {
expect(element.attr('href')).toEqual(undefined);
}));

if (msie) {
it('should throw error if ng-href contains a non-escaped percent symbol', inject(function($rootScope, $compile) {
element = $compile('<a ng-href="http://www.google.com/{{\'a%link\'}}">')($rootScope);

expect(function() {
$rootScope.$digest();
}).toThrow();
}));
}

if (isDefined(window.SVGElement)) {
describe('SVGAElement', function() {
it('should interpolate the expression and bind to xlink:href', inject(function($compile, $rootScope) {
Expand Down