Home
last modified time | relevance | path

Searched refs:newChild (Results 1 – 25 of 46) sorted by relevance

12

/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DInnerNodeImpl.java51 public Node appendChild(Node newChild) throws DOMException { in appendChild() argument
52 return insertChildAt(newChild, children.size()); in appendChild()
85 public Node insertBefore(Node newChild, Node refChild) throws DOMException { in insertBefore() argument
89 return appendChild(newChild); in insertBefore()
100 return insertChildAt(newChild, refChildImpl.index); in insertBefore()
107 Node insertChildAt(Node newChild, int index) throws DOMException { in insertChildAt() argument
108 if (newChild instanceof DocumentFragment) { in insertChildAt()
109 NodeList toAdd = newChild.getChildNodes(); in insertChildAt()
113 return newChild; in insertChildAt()
116 LeafNodeImpl toInsert = (LeafNodeImpl) newChild; in insertChildAt()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dnodeappendchildchildexists.java68 Node newChild; in runTest() local
78 newChild = childNode.getFirstChild(); in runTest()
79 initialName = newChild.getNodeName(); in runTest()
80 appendedChild = childNode.appendChild(newChild); in runTest()
Dnodeappendchildinvalidnodetype.java72 Node newChild; in runTest() local
76 newChild = doc.createAttribute("newAttribute"); in runTest()
81 appendedChild = rootNode.appendChild(newChild); in runTest()
Dhc_nodeappendchildinvalidnodetype.java71 Node newChild; in runTest() local
75 newChild = doc.createAttribute("newAttribute"); in runTest()
80 appendedChild = rootNode.appendChild(newChild); in runTest()
Dnodeappendchildnodeancestor.java70 Node newChild; in runTest() local
75 newChild = doc.getDocumentElement(); in runTest()
82 appendedChild = employeeNode.appendChild(newChild); in runTest()
Dnodeappendchildgetnodename.java68 Node newChild; in runTest() local
75 newChild = doc.createElement("newChild"); in runTest()
76 appendNode = employeeNode.appendChild(newChild); in runTest()
Dhc_nodeappendchildnodeancestor.java68 Node newChild; in runTest() local
75 newChild = doc.getDocumentElement(); in runTest()
82 appendedChild = employeeNode.appendChild(newChild); in runTest()
Dhc_nodeappendchildgetnodename.java68 Node newChild; in runTest() local
75 newChild = doc.createElement("br"); in runTest()
76 appendNode = employeeNode.appendChild(newChild); in runTest()
Dnodereplacechildoldchildnonexistent.java70 Node newChild; in runTest() local
75 newChild = doc.createElement("newChild"); in runTest()
83 replacedNode = elementNode.replaceChild(newChild, oldChild); in runTest()
Dhc_nodereplacechildoldchildnonexistent.java69 Node newChild; in runTest() local
74 newChild = doc.createElement("br"); in runTest()
82 replacedNode = elementNode.replaceChild(newChild, oldChild); in runTest()
Dhc_nodeinsertbeforenodename.java70 Node newChild; in runTest() local
78 newChild = doc.createElement("br"); in runTest()
79 insertedNode = employeeNode.insertBefore(newChild, refChild); in runTest()
Dnodeappendchildnewchilddiffdocument.java73 Node newChild; in runTest() local
79 newChild = doc1.createElement("newChild"); in runTest()
86 appendedChild = elementNode.appendChild(newChild); in runTest()
Dnodeinsertbeforenodename.java70 Node newChild; in runTest() local
78 newChild = doc.createElement("newChild"); in runTest()
79 insertedNode = employeeNode.insertBefore(newChild, refChild); in runTest()
Dhc_nodeinsertbeforerefchildnonexistent.java71 Node newChild; in runTest() local
76 newChild = doc.createElement("br"); in runTest()
84 insertedNode = elementNode.insertBefore(newChild, refChild); in runTest()
Dhc_nodeinsertbeforeinvalidnodetype.java73 Node newChild; in runTest() local
78 newChild = doc.createAttribute("title"); in runTest()
86 insertedNode = rootNode.insertBefore(newChild, refChild); in runTest()
Dnodereplacechildinvalidnodetype.java72 Node newChild; in runTest() local
78 newChild = doc.createAttribute("newAttribute"); in runTest()
85 replacedChild = rootNode.replaceChild(newChild, oldChild); in runTest()
Dhc_nodereplacechildnodename.java71 Node newChild; in runTest() local
79 newChild = doc.createElement("br"); in runTest()
80 replacedNode = employeeNode.replaceChild(newChild, oldChild); in runTest()
Dnodeinsertbeforeinvalidnodetype.java72 Node newChild; in runTest() local
78 newChild = doc.createAttribute("newAttribute"); in runTest()
85 insertedNode = rootNode.insertBefore(newChild, refChild); in runTest()
Dnodeinsertbeforerefchildnonexistent.java71 Node newChild; in runTest() local
76 newChild = doc.createElement("newChild"); in runTest()
84 insertedNode = elementNode.insertBefore(newChild, refChild); in runTest()
Dhc_nodereplacechildinvalidnodetype.java73 Node newChild; in runTest() local
78 newChild = doc.createAttribute("lang"); in runTest()
86 replacedChild = rootNode.replaceChild(newChild, oldChild); in runTest()
Dhc_nodeappendchildnewchilddiffdocument.java72 Node newChild; in runTest() local
78 newChild = doc1.createElement("br"); in runTest()
85 appendedChild = elementNode.appendChild(newChild); in runTest()
Dhc_nodereplacechildnodeancestor.java68 Node newChild; in runTest() local
75 newChild = doc.getDocumentElement(); in runTest()
84 replacedNode = employeeNode.replaceChild(newChild, oldChild); in runTest()
Dnodereplacechildnodeancestor.java70 Node newChild; in runTest() local
77 newChild = doc.getDocumentElement(); in runTest()
86 replacedNode = employeeNode.replaceChild(newChild, oldChild); in runTest()
Dnodeinsertbeforenewchilddiffdocument.java73 Node newChild; in runTest() local
79 newChild = doc1.createElement("newChild"); in runTest()
87 insertedNode = elementNode.insertBefore(newChild, refChild); in runTest()
Dhc_nodereplacechild.java69 Node newChild; in runTest() local
78 newChild = doc.createElement("br"); in runTest()
79 replacedNode = employeeNode.replaceChild(newChild, oldChild); in runTest()

12