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

Text node at the root of body tag in a html document is incorrectly wrapped in <text> #353

Open
tom-sherman opened this issue May 21, 2024 · 0 comments

Comments

@tom-sherman
Copy link

I originally raised this in vercel/next.js#65985 as I thought it was a Next.js/React issue, but it's a bug in json-viewer it seems.

Steps to reproduce

Serve a html document with the content of <html><body>Hello world</body</html>. Make sure to include a Content-Type: text/html; charset=UTF-8 header.

Expected

HTML to be rendered with the exact content as above.

Actual

The text node is wrapped in <text>:

<html><body><text>Hello world</text></body</html>
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