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

Search is broken in some virtual divs #563

Open
clovis opened this issue Dec 10, 2019 · 0 comments
Open

Search is broken in some virtual divs #563

clovis opened this issue Dec 10, 2019 · 0 comments
Assignees
Labels

Comments

@clovis
Copy link
Contributor

clovis commented Dec 10, 2019

This happens when, for instance, you have text inside a div1 followed by a div2 in that div1. The problem is that the initial text is not in a true div2, but in a virtual div2. You cannot search for text within this virtual div.

Solution: create a dynamic inner div (e.g. a div2 in a div1) :

  • Check with a flag if there is text (other than a head?) between a div1 and a div2
  • If there text, create a div2 starting at the beginning of that text and ending at the div2 tag.

Implementation:

  • Wrap div creation within a function that checks for orphan text. If orphan text found create a div to account for it (and balance the tree)
@clovis clovis self-assigned this Dec 10, 2019
@clovis clovis added the PARSER label Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant