jquery / sizzle

A sizzlin' hot selector engine.
https://sizzlejs.com
Other
6.29k stars 951 forks source link

Selector: Use shallow document comparisons to avoid IE/Edge cras… #459

Closed mgol closed 5 years ago

mgol commented 5 years ago

The PR is a version of https://github.com/jquery/jquery/pull/4471 for Sizzle which will be needed to fix it for jQuery 3.x (jQuery 4 doesn't use Sizzle anymore so the fix was in jQuery itself).

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

Fixes jquery/jquery#4441 Closes jquery/jquery#4471