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

Element.text() misses space between block and inline element #1877

Closed
jhy opened this issue Jan 6, 2023 · 0 comments
Closed

Element.text() misses space between block and inline element #1877

jhy opened this issue Jan 6, 2023 · 0 comments
Assignees
Labels
bug Confirmed bug that we should fix fixed
Milestone

Comments

@jhy
Copy link
Owner

jhy commented Jan 6, 2023

In HTML like:

<div>Text</div><span>Text</span>

the output of element.text() should be Text Text, as the div block creates a flow of text after it.

Currently it is incorrectly TextText.

element.wholeText() is and should be TextText, as it returns only non-normalized text.

@jhy jhy self-assigned this Jan 6, 2023
@jhy jhy added bug Confirmed bug that we should fix fixed labels Jan 6, 2023
@jhy jhy added this to the 1.15.4 milestone Jan 6, 2023
@jhy jhy closed this as completed in db5375e Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug that we should fix fixed
Projects
None yet
Development

No branches or pull requests

2 participants
@jhy and others