From 49f9e4cef13e68ff85b3c160cf8fac6e7cd042a3 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 9 Jan 2013 22:23:50 +0000 Subject: fix($compile): do not wrap empty root text nodes in spans Closes #1059 --- test/ng/compileSpec.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/ng/compileSpec.js') diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 927a4ef7..363b4329 100644 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -125,6 +125,19 @@ describe('$compile', function() { expect(element.find('span').text()).toEqual('ABC'); })); + + it('should not wrap root whitespace text nodes in spans', function() { + element = jqLite( + '