From: Brandon Aaron Date: Wed, 25 Apr 2007 18:41:49 +0000 (+0000) Subject: Fix for #1114: Appending legend elements in Firefox X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=958bed09da67c052dfa85c0bb8c0dc88873e5923;hp=cb828f3dab6ec8439ac111246346a8d4b3205fed;p=jquery.git Fix for #1114: Appending legend elements in Firefox --- diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 05fd026..9791767 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -356,7 +356,7 @@ test("wrap(String|Element)", function() { }); test("append(String|Element|Array<Element>|jQuery)", function() { - expect(13); + expect(14); var defaultText = 'Try them out:' var result = $('#first').append('buga'); ok( result.text() == defaultText + 'buga', 'Check if text appending works' ); @@ -408,6 +408,10 @@ test("append(String|Element|Array<Element>|jQuery)", function() { $('#select1').appendTo('#foo'); t( 'Append select', '#foo select', ['select1'] ); + reset(); + $('
').appendTo('#form').append('test'); + t( 'Append legend', '#legend', ['legend'] ); + }); test("appendTo(String|Element|Array<Element>|jQuery)", function() { diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 8859867..a2a9b9f 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1486,6 +1486,9 @@ jQuery.extend({ !s.indexOf("", ""] || + !s.indexOf("", "
"] || + (!s.indexOf("", ""] ||