By default, itĬompares the position of the current node against another node in any other document. If the argument referenced an existing node on the DOM tree, the node will be detachedįrom its current position and attached at the new position.Ĭlone a Node, and optionally, all of its contents. Node.appendChild()Īdds the specified childNode argument as the last child to the current node. In addition to the methods below, Node inherits methods from its parent, EventTarget. Returns / Sets the textual content of an element and all its descendants. Returns a Node representing the previous node in the tree, or No parent, or if that parent is not an Element, this property returns Returns an Element that is the parent of this node. Node, like if this node is the top of the tree or if doesn't participate in a tree, Returns a Node that is the parent of this node. Returns the Document that this node belongs to. Returns / Sets the value of the current node. Returns an unsigned short representing the type of the node. Node will have the '#text' string, or a Document node will HTMLElement will contain the name of the corresponding tag, like Structure of the name will differ with the node type. Returns a string containing the name of the Node. Returns a Node representing the next node in the tree, or Returns a Node representing the last direct child node of the node, Normal DOM, or the ShadowRoot in the case of a shadow DOM. Returns a Node representing the first direct child node of the node,Ī boolean indicating whether or not the Node is connected (directly or indirectly) If the children of the Node change, the NodeList object is Returns a live NodeList containing all the children of this node Returns a string representing the base URL of the document In addition to the properties below, Node inherits properties from its parent, EventTarget.
0 Comments
|