Home | History | Annotate | Download | only in dom

Lines Matching refs:newChild

51     public Node appendChild(Node newChild) throws DOMException {
52 return insertChildAt(newChild, children.size());
85 public Node insertBefore(Node newChild, Node refChild) throws DOMException {
89 return appendChild(newChild);
100 return insertChildAt(newChild, refChildImpl.index);
104 * Inserts {@code newChild} at {@code index}. If it is already child of
107 Node insertChildAt(Node newChild, int index) throws DOMException {
108 if (newChild instanceof DocumentFragment) {
109 NodeList toAdd = newChild.getChildNodes();
113 return newChild;
116 LeafNodeImpl toInsert = (LeafNodeImpl) newChild;
134 return newChild;
193 * Removes {@code oldChild} and adds {@code newChild} in its place. This
196 public Node replaceChild(Node newChild, Node oldChild) throws DOMException {
199 insertChildAt(newChild, index);