diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index b0db0991..5fd368aa 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -667,6 +667,12 @@ jQuery.fn = jQuery.prototype = { * var result = $('#first').append('buga'); * ok( result.text() == defaultText + 'buga', 'Check if text appending works' ); * + * @test reset(); + * var expected = "Try them out: bla "; + * $('#first').append(" "); + * $('#first').append("bla "); + * ok( expected == $('#first').text(), "Check for appending of spaces" ); + * * @name append * @type jQuery * @param String html A string of HTML, that will be created on the fly and appended to the target.