]> source.dussan.org Git - jquery.git/commit
Selector: Use shallow document comparisons in uniqueSort
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 21 Oct 2019 17:04:48 +0000 (19:04 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2019 17:04:48 +0000 (19:04 +0200)
commit15750b0af270da07917b70457cf09bda97d3d935
tree3e3371a3a6acdd9b777119e2b9d7351ea687c2aa
parentf09d92100ffff6208211b200ed0cdc39bfd17fc3
Selector: Use shallow document comparisons in uniqueSort

IE/Edge sometimes crash when comparing documents between frames using the strict
equality operator (`===` & `!==`). Funnily enough, shallow comparisons
(`==` & `!=`) work without crashing.

The change to shallow comparisons in `src/selector.js` was done in gh-4471 but
relevant changes in `src/selector/uniqueSort.js` were missed. Those changes
have landed in Sizzle in jquery/sizzle#459.

Fixes gh-4441
Closes gh-4512
Ref gh-4471
Ref jquery/sizzle#459
src/selector/uniqueSort.js