Lines Matching refs:node

42  * information, and additional methods, appropriate to each node of
50 * to specific node types. When there is no obvious mapping for one of
67 * to their ownerDocument. When a node is owned by another node it relies
70 * And when a node doesn't have an owner, ownerNode refers to its
94 * The node precedes the reference node.
98 * The node follows the reference node.
102 * The node is an ancestor of the reference node.
106 * The node is a descendant of the reference node.
140 /** Element definition node type. */
189 * A short integer indicating what type of node this is. The named
195 * the name of this node.
200 * Returns the node value.
209 * Sets the node value.
218 * Adds a child node to the end of the list of children for this node.
229 * type that shouldn't be a child of this node.
234 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) if this node is
242 * Returns a duplicate of a given node. You can consider this a
252 * Example: Cloning a Text node will copy both the node and the text it
257 * has been requested. A shallow clone of an Attr node will yield an
260 * NOTE: Clones will always be read/write, even if the node being cloned
326 * set the ownerDocument of this node
340 * Returns the node number
350 * Obtain the DOM-tree parent of this node, or null if it is not
366 /** The next child of this node's parent, or null if none */
371 /** The previous child of this node's parent, or null if none */
381 * Return the collection of attributes associated with this node,
382 * or null if none. At this writing, Element is the only type of node
392 * Returns whether this node (if it is an element) has any attributes.
393 * @return <code>true</code> if this node has any attributes,
403 * Test whether this node has any children. Convenience shorthand
414 * Obtain a NodeList enumerating all children of this node. If there
449 * Move one or more node(s) to our list of children. Note that this
467 * type that shouldn't be a child of this node, or if newChild is an
468 * ancestor of this node.
474 * this node.
476 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) if this node is
496 * this node.
498 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) if this node is
520 * type that shouldn't be a child of this node, or if newChild is
527 * this node.
529 * @throws DOMException(NO_MODIFICATION_ALLOWED_ERR) if this node is
544 * NodeList method: Count the immediate children of this node
556 * NodeList method: Return the Nth immediate child of this node, or
599 * that feature is supported by this node.
607 * @return boolean Returns true if this node defines a subtree within which
620 * The namespace URI of this node, or null if it is unspecified. When this
621 * node is of any type other than ELEMENT_NODE and ATTRIBUTE_NODE, this is
642 * The namespace prefix of this node, or null if it is unspecified. When
643 * this node is of any type other than ELEMENT_NODE and ATTRIBUTE_NODE this
661 * The namespace prefix of this node, or null if it is unspecified. When
662 * this node is of any type other than ELEMENT_NODE and ATTRIBUTE_NODE
690 * Returns the local part of the qualified name of this node.
730 * The absolute base URI of this node or <code>null</code> if undefined.
736 * <br> When the node is an <code>Element</code>, a <code>Document</code>
738 * the properties [base URI] defined in . When the node is a
758 * Compares a node with this node with regard to their position in the
761 * @param other The node to compare against this node.
762 * @return Returns how the given node is positioned relatively to this
763 * node.
784 // Is the element node "outer" considered an ancestor of "myattr"?
790 // they they are the attribute node itself, unless the 2 nodes
793 // 5. How does an ENTITY_REFERENCE node compare with it's children?
796 // Current assumption: An ENTITY_REFERENCE node is an ancestor of its
808 // If either node is of type ENTITY or NOTATION, compare as disconnected
812 // If either node is of type ENTITY or NOTATION, compare as disconnected
820 // Find the ancestor of each node, and the distance each node is from
827 Node node;
832 for (node=this; node != null; node = node.getParentNode()) {
834 if (node == other)
835 // The other node is an ancestor of this one.
837 thisAncestor = node;
840 for (node=other; node!=null; node=node.getParentNode()) {
842 if (node == this)
843 // The other node is a descendent of the reference node.
845 otherAncestor = node;
879 for (node=thisNode; node != null; node=node.getParentNode()) {
881 if (node == otherNode)
882 // The other node is an ancestor of the owning element
886 thisAncestor = node;
894 for (node=otherNode; node != null; node=node.getParentNode()) {
896 if (node == thisNode)
897 // The other node is a descendent of the reference
898 // node's element
900 otherAncestor = node;
910 // Go up the parent chain of the deeper node, until we find a node
911 // with the same depth as the shallower node
916 // Check if the node we have reached is in fact "otherNode". This can
926 // Check if the node we have reached is in fact "thisNode". This can
965 * Compares a node with this node with regard to their position in the
967 * @param other The node to compare against this node.
968 * @return Returns how the given node is positioned relatively to this
969 * node.
980 NodeImpl node = (NodeImpl) other;
1018 // Find the ancestor of each node, and the distance each node is from
1025 Node node;
1031 for (node=this; node != null; node = node.getParentNode()) {
1033 if (node == other)
1034 // The other node is an ancestor of this one.
1037 thisAncestor = node;
1040 for (node=other; node!=null; node=node.getParentNode()) {
1042 if (node == this)
1043 // The other node is a descendent of the reference node.
1046 otherAncestor = node;
1118 for (node=thisNode; node != null; node=node.getParentNode()) {
1120 if (node == otherNode)
1122 // The other node is an ancestor of the owning element
1126 thisAncestor = node;
1150 for (node=otherNode; node != null; node=node.getParentNode()) {
1152 if (node == thisNode)
1153 // The other node is a descendent of the reference
1154 // node's element
1157 otherAncestor = node;
1181 // Go up the parent chain of the deeper node, until we find a node
1182 // with the same depth as the shallower node
1187 // Check if the node we have reached is in fact "otherNode". This can
1199 // Check if the node we have reached is in fact "thisNode". This can
1239 * This attribute returns the text content of this node and its
1241 * When set, any possible children this node may have are removed and
1242 * replaced by a single <code>Text</code> node containing the string
1248 * <br>The string returned is made of the text content of this node
1257 * This attribute returns the text content of this node and its
1259 * When set, any possible children this node may have are removed and
1260 * replaced by a single <code>Text</code> node containing the string
1266 * <br>The string returned is made of the text content of this node
1278 * attribute value of every child node, excluding COMMENT_NODE and
1294 * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
1314 * This attribute returns the text content of this node and its
1316 * When set, any possible children this node may have are removed and
1317 * replaced by a single <code>Text</code> node containing the string
1323 * <br>The string returned is made of the text content of this node
1335 * attribute value of every child node, excluding COMMENT_NODE and
1351 * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
1364 * Returns whether this node is the same node as the given one.
1372 * @param other The node to test against.
1461 * Look up the prefix associated to the given namespace URI, starting from this node.
1511 * Look up the namespace URI associated to the given prefix, starting from this node.
1669 * length and for each node that exists in one map there is a node that
1674 * for <code>Attr</code> nodes as for any other type of node. Note that
1689 * @param arg The node to compare equality with.
1759 // we don't have any alternate node, either this node does the job
1765 * Associate an object to a key on this node. The object can later be
1766 * retrieved from this node by calling <code>getUserData</code> with the
1774 * the given key on this node, or <code>null</code> if there was none.
1784 * Retrieves the object associated to a key on a this node. The object
1785 * must first have been set to this node by calling
1789 * on this node, or <code>null</code> if there was none.
1832 * NON-DOM: Returns true if this node is read-only. This is a
1846 * has been extended with the ability to attach an object to each node.
1862 * Returns the user data associated to this node.
1873 * Denotes that this node has changed.
1876 // we do not actually store this information on every node, we only
1883 * Returns the number of changes to this node.
1886 // we do not actually store this information on every node, we only
1902 * For non-child nodes, the node which "points" to this node.