Results 1 - 20 of 29

Node.compareDocumentPosition()

The Node.compareDocumentPosition() method compares the position of the current node against another node in any other document.
API DOM Method Node

Node.contains()

The Node.contains() method returns a Boolean value indicating whether a node is a descendant of a given node or not.
API DOM Method Node

Node.hasChildNodes()

The Node.hasChildNodes() method returns a Boolean value indicating whether the current Node has child nodes or not.
API DOM Method Node

ChildNode

The ChildNode interface contains methods that are particular to Node objects that can have a parent.
API DOM Experimental Interface Node

Node.firstChild

The Node.firstChild read-only property returns the node's first child in the tree, or null if the node is childless. If the node is a Document, it returns the first node in the list of its direct children.
API DOM Gecko Node Property

Node.isEqualNode()

The Node.isEqualNode() method tests whether two nodes are equal. Two nodes are equal when they have the same type, defining characteristics (for elements, this would be their ID, number of children, and so forth), its attributes match, and so on. The specific set of data points that much match varies depending on the types of the nodes.
API DOM Method Node Reference

Node.isSameNode()

The Node.isSameNode() method tests whether two nodes are the same, that is if they reference the same object.
API DOM Method Node Reference

Node.nextSibling

The Node.nextSibling read-only property returns the node immediately following the specified one in its parent's childNodes list, or null if the specified node is the last node in that list.
API DOM Gecko Node Property

Node.parentElement

The Node.parentElement read-only property returns the DOM node's parent Element, or null if the node either has no parent, or its parent isn't a DOM Element.
API DOM NeedsBrowserCompatibility Node Property

ChildNode.after()

The ChildNode.after() method inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just after this ChildNode. DOMString objects are inserted as equivalent Text nodes.
API DOM Experimental Method Node Reference

ChildNode.before()

The ChildNode.before method inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just before this ChildNode. DOMString objects are inserted as equivalent Text nodes.
API DOM Experimental Method Node Reference

ChildNode.replaceWith()

The ChildNode.replaceWith() method replaces this ChildNode in the children list of its parent with a set of Node or DOMString objects. DOMString objects are inserted as equivalent Text nodes.
API DOM Experimental Method Node Reference

Document.importNode()

Creates a copy of a node from an external document that can be inserted into the current document.
API Document DOM Method Node Reference Référence

Node

A Node is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly.
API DOM DOM Reference Interface Node Reference

Node.appendChild()

The Node.appendChild() method adds a node to the end of the list of children of a specified parent node. If the given child is a reference to an existing node in the document, appendChild() moves it from its current position to the new position (there is no requirement to remove the node from its parent node before appending it to some other node).
API DOM Method Node Reference Référence

Node.getUserData()

The Node.getUserData() method returns any user DOMUserData set previously on the given node by Node.setUserData().
API DOM Method Node Obsolete Reference

Node.insertBefore()

The Node.insertBefore() method inserts the specified node before the reference node as a child of the current node.
API DOM Method Node Reference Référence

Node.isDefaultNamespace()

The Node.isDefaultNamespace()method accepts a namespace URI as an argument and returns a Boolean with a value of true if the namespace is the default namespace on the given node or false if not.
API DOM Method Node Reference Référence

Node.lookupNamespaceURI()

The Node.lookupNamespaceURI() method takes a prefix and returns the namespace URI associated with it on the given node if found (and null if not). Supplying null for the prefix will return the default namespace.
API DOM Method Node Reference Référence