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

refactor(ngSanitize) Remove workarounds for IE8 #10758

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Next Next commit
test(ngSanitize): Add tests for decodeEntities
  • Loading branch information
realityking committed Feb 12, 2015
commit d2148fe36c30b6f15066d8d24f3942882e4e7498
10 changes: 10 additions & 0 deletions test/ngSanitize/sanitizeSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,16 @@ describe('decodeEntities', function() {
afterEach(function() {
window.hiddenPre = origHiddenPre;
});

it('should unescape text', function() {
htmlParser('a<div>&</div>c', handler)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing semi-colon

expect(text).toEqual('a<div>&</div>c');
});

it('should preserve whitespace', function() {
htmlParser(' a&amp;b ', handler)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing semi-colon

expect(text).toEqual(' a&b ');
});

it('should use innerText if textContent is not available (IE<9)', function() {
window.hiddenPre = {
Expand Down