-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
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)