From: John Resig <jeresig@gmail.com> Date: Sun, 8 Jul 2007 04:46:21 +0000 (+0000) Subject: Making the test suite a little more XML-compliant. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=5ed992d5f590a06429859c6b5c511fce07a33b28;p=jquery.git Making the test suite a little more XML-compliant. --- diff --git a/build/test/index.html b/build/test/index.html index 36e37ae..756e2a5 100644 --- a/build/test/index.html +++ b/build/test/index.html @@ -91,8 +91,8 @@ <b id="floatTest">Float test.</b> <iframe id="iframe" name="iframe"></iframe> <form id="lengthtest"> - <input type="text" id="length" name="test"> - <input type="text" id="idTest" name="id"> + <input type="text" id="length" name="test"/> + <input type="text" id="idTest" name="id"/> </form> <table id="table"></table> </div> diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 43b9e81..8d7e9f8 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -407,7 +407,7 @@ test("append(String|Element|Array<Element>|jQuery)", function() { ok( pass, "Test for appending a DOM node to the contents of an IFrame" ); reset(); - $('<fieldset>').appendTo('#form').append('<legend id="legend">test</legend>'); + $('<fieldset/>').appendTo('#form').append('<legend id="legend">test</legend>'); t( 'Append legend', '#legend', ['legend'] ); reset(); @@ -417,7 +417,7 @@ test("append(String|Element|Array<Element>|jQuery)", function() { $('#table').append('<colgroup></colgroup>'); ok( $('#table colgroup').length, "Append colgroup" ); - $('#table colgroup').append('<col>'); + $('#table colgroup').append('<col/>'); ok( $('#table colgroup col').length, "Append col" ); reset();