We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I expect correct parse: parse('<table>\n<tbody><tr><td>sdfq</td></tr></tbody></table>')
parse('<table>\n<tbody><tr><td>sdfq</td></tr></tbody></table>')
It works, but Chrome console has error: Warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of
https://jsfiddle.net/2f7tpmx5/1/
The text was updated successfully, but these errors were encountered:
This is similar to aknuds1/html-to-react#79
Long story short, this parser (like html-to-react) creates whitespace text nodes given the input HTML.
The HTML to DOM parser that we use is html-dom-parser.
Fortunately, this is a warning and not an error. However, it might be worth looking into stripping out the whitespace nodes for this library.
Sorry, something went wrong.
trim
Please review #162
Published 0.13.0:
npm:
npm install [email protected]
yarn:
yarn add [email protected]
Successfully merging a pull request may close this issue.
I expect correct parse:
parse('<table>\n<tbody><tr><td>sdfq</td></tr></tbody></table>')
It works, but Chrome console has error:
. Make sure you don't have any extra whitespace between tags on each line of your source code.Warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of
https://jsfiddle.net/2f7tpmx5/1/
The text was updated successfully, but these errors were encountered: