WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Parsing html tag without body tag failed #818

@harryzcy

Description

@harryzcy

Expected Behavior

parse('<html><p>Hello, World!</p></html>') should return a html tag, with a p child tag

Actual Behavior

It returns empty react element. console.log gives the following:

{
  ...
  props: {children: null}
  ...
}

Steps to Reproduce

Call parse('<html><p>Hello, World!</p></html>')

Reproducible Demo

Environment

  • Version: v3.0.8
  • Platform: node v18.12.1, TypeScript 4.9.5
  • Browser: Chrome v108
  • OS: macOS

Keywords

Metadata

Metadata

Labels

wontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions