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

Custom self closing label parsing error, resulting in incorrect document structure #3322

Open
gengfanbin opened this issue Aug 10, 2023 · 0 comments

Comments

@gengfanbin
Copy link

Sorry, my English is not very good, but I have encountered a problem and have to submit it.
I encountered a parsing error when using Cheerio to load the following code. I suspect that the custom self closing tag cannot be parsed properly.
Here is the sample code

<div>
    <upgrade_popup   />
    <div></div>
</div>

It will be parsed as follows:

<div>
    <upgrade_popup>
        <div></div>
    </upgrade_popup>
</div>
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