From 243ab24d52a0cafccda75c21c3f9fb9d8fb2dee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski-Owczarek?= Date: Wed, 28 Mar 2018 21:33:17 +0200 Subject: [PATCH] docs(jqLite): document 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 #11446 --- src/jqLite.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jqLite.js b/src/jqLite.js index f7913ac4312f..541d2642fb26 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -54,7 +54,8 @@ * * - [`addClass()`](http://api.jquery.com/addClass/) - Does not support a function as first argument * - [`after()`](http://api.jquery.com/after/) - * - [`append()`](http://api.jquery.com/append/) + * - [`append()`](http://api.jquery.com/append/) - Contrary to jQuery, this doesn't clone elements + * so will not work correctly when invoked on a jqLite object containing more than one DOM node * - [`attr()`](http://api.jquery.com/attr/) - Does not support functions as parameters * - [`bind()`](http://api.jquery.com/bind/) (_deprecated_, use [`on()`](http://api.jquery.com/on/)) - Does not support namespaces, selectors or eventData * - [`children()`](http://api.jquery.com/children/) - Does not support selectors