Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

noonanwebgroup
Copy link

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

}

if (r !== null) {
if (exist(r)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm looks like this check is problematic in general. In this case, I would be opting to just remove entirely this conditional and fully rely on runtime error. This check was only intended to give some sort of more user-friendly message instead of "Something is undefined" it can be removed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will do for your user case?

@jedrzejchalubek
Copy link
Member

Should be fixed with v3.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants