From a2c42711281d6ec61b73190b47743f79143c5bb1 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 31 Mar 2011 01:19:07 -0700 Subject: ignore jqLite#append for doc fragment this is needed to be compatible with jqQuery 1.5.1 --- test/jqLiteSpec.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/jqLiteSpec.js') diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index 2fc670ce..e566b1fe 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -299,6 +299,11 @@ describe('jqLite', function(){ expect(root.append('text')).toEqual(root); expect(root.html()).toEqual('text'); }); + it('should not append anything if parent node is not of type element', function() { + var root = jqLite(document.createDocumentFragment()); + expect(root.append('

foo

')).toBe(root); + expect(root.children().length).toBe(0); + }); }); describe('remove', function(){ it('should remove', function(){ -- cgit v1.2.3