Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix find mode not searching inside elements with display property set to contents #4493

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

victoragcosta
Copy link

Description

Resolves #4492.

The checkVisibility method considers elements with display set to contents as not visible in the page and it is true that the element is not visible, but its children are completely visible. So I simply made the node traversal algorithm also visit the children of elements with node.style.display === 'contents' and it worked.

…rty set to `contents`

made the find mode dom node traversal algorithms search for visible nodes inside elements with display property set as contents. This had to be done because the `checkVisibility` method considers these elements as not visible, however the children of these elements are visible.
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.

Find mode doesn't work inside elements with display property set as contents
1 participant