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

it cannot get text node #11

Closed
plh97 opened this issue Oct 5, 2024 · 2 comments
Closed

it cannot get text node #11

plh97 opened this issue Oct 5, 2024 · 2 comments

Comments

@plh97
Copy link

plh97 commented Oct 5, 2024

to get parent node, it work, but to get text node, not work

image

@thiagodp
Copy link
Owner

thiagodp commented Oct 5, 2024

Hello @plh97, as a workaround (to solve your problem), try the following:

const firstTextXPath = getXPath( $0.parentNode ) + '/text()[1]'

thiagodp added a commit that referenced this issue Oct 5, 2024
@thiagodp
Copy link
Owner

thiagodp commented Oct 5, 2024

Support to text nodes added - see v3.2.0

@thiagodp thiagodp closed this as completed Oct 5, 2024
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

No branches or pull requests

2 participants