Skip to content

Methods that can duplicate a node ought to return a query containing all the clones #17

@jasononeil

Description

@jasononeil

This happens in both DOMManipulation classes.

It causes weirdness when you do something like this:

li.setText('first");
lists.prepend(li);
li.setText("second");

If there are multiple "lists", then "li" will be cloned so it can be appended to each one. Because we only return the original though, li.setText('second') is going to have no effect on the second, third etc cloned nodes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions