Skip to content

Commit 09a6385

Browse files
mgolNarretz
authored andcommitted
docs(jqLite): document that append doesn't work well with a multi-node object
Contrary to jQuery jqLite's append doesn't clone elements so will not work correctly when invoked on a jqLite object containing more than one DOM node. Refs angular#11446 Closes angular#16517
1 parent a8dedf7 commit 09a6385

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jqLite.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
*
5555
* - [`addClass()`](http://api.jquery.com/addClass/) - Does not support a function as first argument
5656
* - [`after()`](http://api.jquery.com/after/)
57-
* - [`append()`](http://api.jquery.com/append/)
57+
* - [`append()`](http://api.jquery.com/append/) - Contrary to jQuery, this doesn't clone elements
58+
* so will not work correctly when invoked on a jqLite object containing more than one DOM node
5859
* - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters
5960
* - [`bind()`](http://api.jquery.com/bind/) (_deprecated_, use [`on()`](http://api.jquery.com/on/)) - Does not support namespaces, selectors or eventData
6061
* - [`children()`](http://api.jquery.com/children/) - Does not support selectors

0 commit comments

Comments
 (0)