-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
.html($('selector')) copies the node instead move it #940
Closed
Labels
Comments
fb55
added a commit
that referenced
this issue
Jun 8, 2021
fb55
added a commit
that referenced
this issue
Jun 8, 2021
This was referenced Aug 31, 2024
This was referenced Sep 1, 2024
This was referenced Sep 8, 2024
This was referenced Sep 12, 2024
This was referenced Sep 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
In jquery this code moves a node inside other:
But in cheerio, this generates a new element, so I get two: the outside and the inside of container. A way to fix this is using appendTo:
But I guess
html
should be fixed. Thanks.The text was updated successfully, but these errors were encountered: