diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 0ba33c193d..62cd273f4d 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -3217,6 +3217,10 @@ function test_not() { $("p").not("#selected"); $("p").not($("div p.selected")); + + var el1 = $("
")[0]; + var el2 = $("
")[0]; + $("p").not([el1, el2]); } function test_EventIsNewable() { diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 5beb4e4af6..aa89a8fe6c 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -3050,7 +3050,7 @@ interface JQuery { * * @param elements One or more DOM elements to remove from the matched set. */ - not(...elements: Element[]): JQuery; + not(elements: Element[]): JQuery; /** * Remove elements from the set of matched elements. *