Explorar o código

Updated children parameter of element constructor.

Piotr Jasiun %!s(int64=10) %!d(string=hai) anos
pai
achega
090fa362a5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      packages/ckeditor5-engine/src/document/element.js

+ 2 - 1
packages/ckeditor5-engine/src/document/element.js

@@ -19,7 +19,8 @@ CKEDITOR.define( [ 'document/node', 'document/nodelist' ], function( Node, NodeL
 		 *
 		 * @param {String} name Node name.
 		 * @param {Array} attrs Array of {@link document.Attribute attributes}.
-		 * @param {Array} children Array of {@link document.Node nodes}.
+		 * @param {document.Node|document.Text|document.NodeList|String|Array} nodes List of nodes to be inserted.
+		 * List of nodes can be any type accepted by the {@link document.NodeList} constructor.
 		 */
 		constructor( name, attrs, children ) {
 			super( attrs );