diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-01-08 03:25:26 +0000 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-01-08 03:27:10 +0000 |
commit | 0ed497b04595eab5beca1441a134761b11fc9b2f (patch) | |
tree | dc5d8eb534192adf19fe0a05ed3cd59b8b802edc /test/unit/manipulation.js | |
parent | ce67f0ce640854ae6921bed154da772d26a1167e (diff) | |
download | jquery-0ed497b04595eab5beca1441a134761b11fc9b2f.tar.gz jquery-0ed497b04595eab5beca1441a134761b11fc9b2f.zip |
Resurrect buildFragment and sacrifice jQuery.clean. See gh-1117.
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index d208b3b7a..0a110725e 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -672,24 +672,6 @@ test( "append HTML5 sectioning elements (Bug #6485)", function() { equal( aside.length, 1, "HTML5 elements do not collapse their children" ); }); -test( "jQuery.clean, #12392", function() { - - expect( 6 ); - - var elems = jQuery.clean( [ "<div>test div</div>", "<p>test p</p>" ] ); - - ok( elems[ 0 ].parentNode == null || elems[ 0 ].parentNode.nodeType === 11, "parentNode should be documentFragment or null" ); - ok( elems[ 1 ].parentNode == null || elems[ 1 ].parentNode.nodeType === 11, "parentNode should be documentFragment or null" ); - - equal( elems[ 0 ].innerHTML, "test div", "Content should be preserved" ); - equal( elems[ 1 ].innerHTML, "test p", "Content should be preserved" ); - - equal( jQuery.clean([ "<span><span>" ]).length, 1, "Incorrect html-strings should not break anything" ); - - elems = jQuery.clean([ "<td><td>" ]); - ok( elems[ 1 ].parentNode == null || elems[ 1 ].parentNode.nodeType === 11, "parentNode should be documentFragment or null" ); -}); - if ( jQuery.css ) { test( "HTML5 Elements inherit styles from style rules (Bug #10501)", function() { |