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
Is there a way to parse some text as a Text node without a body element being automatically created?
Text
body
See https://play.rust-lang.org/?gist=5632132a9b670f3831a10c931f78c28c&version=stable for an example. I'm interested in a way to have <html>foo</html> and foo parse differently.
<html>foo</html>
foo
The text was updated successfully, but these errors were encountered:
Hi, the thing parse_fragments does is execute this algorithm: https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments If you look at step 1, it's construct an html node.
parse_fragments
html
What you guys needs is something else, I think. Would writing a custom TokenSink, that detects non-text elements work for you?
Sorry, something went wrong.
No branches or pull requests
Is there a way to parse some text as a
Text
node without abody
element being automatically created?See https://play.rust-lang.org/?gist=5632132a9b670f3831a10c931f78c28c&version=stable for an example. I'm interested in a way to have
<html>foo</html>
andfoo
parse differently.The text was updated successfully, but these errors were encountered: