This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Append method of jqLite append only for the last target element #11446
Closed
Description
Hi,
With jQuery, it is specified that append
function should append "cloned copies of the inserted element for each target except for the last one".
But with jqLite, the same node is appended for each target, it means that the node element will be inserted only for the last target element.
Here is a very simple jsFiddle to reproduce (it uses angularjs 1.2.1 but I reproduced with angular.js 1.3.14) : https://jsfiddle.net/5o5h5hzf/
I agree, this could be easily fixed using native dom api, so I wonder if it's a known bug or if it's the expected behavior. If it's a bug, I can submit a PR if you want, otherwise it should probably be documented ?