As of 1.3.2 (in 2009), jQuery inherits its depth-first pre-order traversal from the W3Cā€™s DOM Selectors API.