tinymce.html.Node

This class is a minimalistic implementation of a DOM like node used by the DomParser class.

Examples

var node = new tinymce.html.Node('strong', 1);
someRoot.append(node);

Methods

Method Defined By
Constructs a new Node instance.
tinymce.html.Node
Replaces the current node with the specified one.
tinymce.html.Node
Gets/sets or removes an attribute by name.
tinymce.html.Node
Does a shallow clones the node into a new node.
tinymce.html.Node
Wraps the node in in another node.
tinymce.html.Node
Unwraps the node in other words it removes the node but keeps the children.
tinymce.html.Node
Removes the node from it's parent.
tinymce.html.Node
Appends a new node as a child of the current node.
tinymce.html.Node
Inserts a node at a specific position as a child of the current node.
tinymce.html.Node
Get all children by name.
tinymce.html.Node
Removes all children of the current node.
tinymce.html.Node
Returns true/false if the node is to be considered empty or not.
tinymce.html.Node
Walks to the next or previous node and returns that node or null if it wasn't found.
tinymce.html.Node
Creates a node of a specific type.
tinymce.html.Node