Kruis IT

home

These bugs were found after upgrading a project from jQuery 1.2.6 to 1.3.2.

Current jQuery version is 1.7.1. Results below are for 1.7.1.

Error

An error has occurred. Did you pass in an incorrect version?
This tool only works from 1.1.3 upwards.

Sibling selector

http://docs.jquery.com/Selectors/siblings

Test case:

	$(".test_sibling .target ~ li").css("background-color", "#fff544");

Works with 1.2.6, used to be broken in 1.3.2. A fix is given in http://groups.google.com/group/jquery-dev/. Test with nightly. Works in WebKit for all versions.

Greater Than selector

http://docs.jquery.com/Selectors/gt#index

Test case:

	$(".test_gt:has(li:gt(0))").css("background-color", "#fff544");

Works with 1.2.6. Test with nightly.

Hidden selector

http://docs.jquery.com/Selectors/hidden

Test case:

	$(".test_hidden .target:not(:hidden):visible div").css("background-color", "#fff544");
this <div> is highlighted when its parent is both :visible and :not(:hidden).
The confusion comes from the fact that this <div> is absolutely positioned,
which gives its parent a height of 0.
 
 

Works with 1.2.6, is broken in 1.3.2. A fix is given in http://dev.jquery.com/ticket/4374. Test with nightly.