siblings method returns unexpected elements when using Sizzle-invoking pseudo-selectors
|Reported by:||interdream||Owned by:|
When using a selector including a pseudo-selector that requires Sizzle with the siblings method, unexpected elements are returned.
Given the following markup:
<div id="d1"></div> <div> <span></span> </div>
And the following jQuery:
You would expect that an empty set be returned, as there are no span siblings of #d1. However, the div containing the span is returned.
JSFiddle example. Reproduced in Chrome 14, Firefox 7 and IE9.