Skip to content

Commit 73ab33b

Browse files
matskojamesdaily
authored andcommitted
chore(docs): fix broken IE8 test due to sanitization bug
1 parent 439bca4 commit 73ab33b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/component-spec/errorLinkFilterSpec.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ describe("errorLinkFilter", function () {
1313
});
1414

1515
it('should find links in text and linkify them', function () {
16-
expect(errorLinkFilter("http://ab/ (http://a/) http://1.2/v:~-123. c")).
16+
var output = errorLinkFilter("http://ab/ (http://a/) http://1.2/v:~-123. c");
17+
//temporary fix for IE8 sanitization whitespace bug
18+
output = output.replace('</a>(','</a> (');
19+
expect(output).
1720
toBe('<a href="http://ab/">http://ab/</a> ' +
1821
'(<a href="http://a/">http://a/</a>) ' +
1922
'<a href="http://1.2/v:~-123">http://1.2/v:~-123</a>. c');
@@ -46,4 +49,4 @@ describe("errorLinkFilter", function () {
4649
toBe('<a href="http://errors.angularjs.org/very-long-version-string/$injector/nomod?p0=myApp">' +
4750
'http://errors.angularjs.org/very-long-version-string/$inj...</a>');
4851
});
49-
});
52+
});

0 commit comments

Comments
 (0)