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

Issues with parsing rawText #17

Open
shaunsational opened this issue Oct 19, 2018 · 1 comment
Open

Issues with parsing rawText #17

shaunsational opened this issue Oct 19, 2018 · 1 comment

Comments

@shaunsational
Copy link

I'm having an issue while loading external content. I have gotten everything to work fine when loading a single dom node, but when loading a list of nodes I'm having issues. I'm trying to create an object of text after scraping the html that has been loaded.

  • If I break the loop by just returning, it returns the rawText fine
  • If I do NOT use rawText and allow the loop to proceed it works (but I have HTMLElement, childNodes, TextNode, rawText and all the rest of the attribute stuff)
  • If I append ".rawText" to that previous selector within the loop that I know works, I get an error that null is not an object.

I am using this inside of a react native project, if that's any concern.

@shaunsational
Copy link
Author

shaunsational commented Oct 19, 2018

I abstracted it out into a check function and it began working. not sure why it didn't work inline, but does through another function ¯\(ツ)

iamabubakar pushed a commit to iamabubakar/node-fast-html-parser that referenced this issue Sep 8, 2020
iamabubakar pushed a commit to iamabubakar/node-fast-html-parser that referenced this issue Sep 8, 2020
iamabubakar pushed a commit to iamabubakar/node-fast-html-parser that referenced this issue Sep 8, 2020
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

1 participant