You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes for parsing top-level and trailing text nodes. (#12)
* When there are top-level text nodes, add them to the results array instead of one level up when at level 0.
* Make sure we calculate the correct end of the text node when it's the last node in the html string.
* Add tests to verify parser behavior on top-level and trailing text nodes.
* We ought to drop text nodes that are nothing but whitespace since not useful in HTML.
* Update tests for dropping whitespace-only nodes.
0 commit comments