From: Jörn Zaefferer <joern.zaefferer@gmail.com> Date: Sat, 16 Sep 2006 17:09:54 +0000 (+0000) Subject: Added test for bug #190 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=060c55bf043922401cb033117a3091ad24dbf047;p=jquery.git Added test for bug #190 --- diff --git a/build/test/index.html b/build/test/index.html index 9ee1d4e..74539ef 100644 --- a/build/test/index.html +++ b/build/test/index.html @@ -52,7 +52,7 @@ <option id="option1c" value="2">2</option> <option id="option1d" value="3">3</option> </select> - <select name="select1" id="select2"> + <select name="select2" id="select2"> <option id="option2a" value="">Nothing</option> <option id="option2b" value="1">1</option> <option id="option2c" value="2">2</option> diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 17e2a66..9703833 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1662,6 +1662,10 @@ jQuery.extend({ * @test t( "All Children of ID", "#foo/*", ["sndp", "en", "sap"] ); * @test t( "All Children of ID with no children", "#firstUL/*", [] ); * + * @test t( ":not() Existing attribute", "input:not([@name])", ["text2", "check2"]); + * @test t( ":not() Equals attribute", "select:not([@name=select1])", ["select2", "select3"]); + * @test t( ":not() Equals quoted attribute", "select:not([@name='select1'])", ["select2", "select3"]); + * * @name $.find * @type Array<Element> * @private