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

Elements get duplicated #35

Open
shinsenter opened this issue Jan 22, 2021 · 1 comment
Open

Elements get duplicated #35

shinsenter opened this issue Jan 22, 2021 · 1 comment

Comments

@shinsenter
Copy link

shinsenter commented Jan 22, 2021

Elements get duplicated when using append(), prepend(), before(), after()

$node = $node->cloneNode(true);

shinsenter referenced this issue Jan 22, 2021
@rulatir
Copy link

rulatir commented Mar 18, 2024

If there are multiple append targets, all of the appended elements but the last one should be clones, and the last one should be moved. This is what jQuery does.

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

2 participants