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: Ignore guessed regions with no innerText #445

Merged
merged 1 commit into from
Aug 11, 2021

Conversation

matatk
Copy link
Owner

@matatk matatk commented Aug 10, 2021

I noticed a site in the wild with several guessed regions, including
some spurious ones. This addresses some of the issue by ignoring any
region that's essentially empty from the user's perspective. It does not
address regions that are visually hidden, as getComputedStyle() doesn't
cover hidden parent elements. Have decided not to change that for now,
due to the expected performance hit and lack of other examples of false
positives.

@matatk matatk force-pushed the fix-empty-guessed-regions branch from 43f3854 to 16bb660 Compare August 11, 2021 20:03
@matatk matatk merged commit 46eed4c into main Aug 11, 2021
@matatk matatk deleted the fix-empty-guessed-regions branch August 11, 2021 20:05
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.

1 participant