Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixes #916 - its newElement.replaces(oldElement)

  • Loading branch information...
1 parent e506648 commit cfa964eed8a047f5adf4bdd687ed3d7ff5ecfa11 @arian arian committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 Docs/Element/
7 Docs/Element/
@@ -794,7 +794,7 @@ Clones the Element and returns the cloned one.
Element Method: replaces {#Element:replaces}
-Replaces the Element with an Element passed.
+Replaces the passed Element with Element.
### Syntax:
@@ -802,7 +802,7 @@ Replaces the Element with an Element passed.
### Arguments:
-1. el - (*mixed*) A string id representing the Element to be replaced with, or an Element reference.
+1. el - (*mixed*) A string id representing the Element to be replaced, or an Element reference.
### Returns:
@@ -1113,6 +1113,9 @@ Returns all the Element's children (excluding text nodes). Returns as [Elements]
* (*array*) A [Elements](#Elements) array with all of the Element's children, except the text nodes.
+### Note:
+The difference between the methods *getChildren* and *getElements* is that getChildren will only return its direct children while getElements searches for all the Elements in any depth.
Element Method: empty {#Element:empty}

0 comments on commit cfa964e

Please sign in to comment.
Something went wrong with that request. Please try again.