glidejs / glide

A dependency-free JavaScript ES6 slider and carousel. It’s lightweight, flexible and fast. Designed to slide. No less, no more
https://glidejs.com
MIT License
7.21k stars 768 forks source link

fix: check if HTMLElement is valid in iframe or window #690

Open noonanwebgroup opened 1 month ago

noonanwebgroup commented 1 month ago

There was a fix that was introduced in PR #669, however it didn't fully fix the issue as there were other elements which checked for the validity of a HTML element without using query selector.

This PR reverts back to the use of the original exist() function but checks to see whether the element exists in the iframe window or within the main window