Report an issue
Class

CKEDITOR.htmlParser.node

class since 4.1.0

A lightweight representation of HTML node.

Filtering

Methods

  • constructor() → node

    Creates a node class instance.

    Returns

    node
  • since 4.3.0

    getAscendant( condition ) → element

    Gets the closest ancestor element of this element which satisfies given condition

    Parameters

    condition : String | Object | Function

    Name of an ancestor, hash of names or validator function.

    Returns

    element

    The closest ancestor which satisfies given condition or null.

  • since 4.3.0

    getIndex() → Number

    Gets this node's index in its parent's children array.

    Returns

    Number
  • since 4.1.0

    insertAfter( node )

    Insert this node after given one.

    Parameters

    node : node

    The node that will precede this element.

  • since 4.1.0

    insertBefore( node )

    Insert this node before given one.

    Parameters

    node : node

    The node that will follow this element.

  • since 4.1.0

    remove()

    Remove this node from a tree.

  • since 4.1.0

    replaceWith( node )

    Replace this node with given one.

    Parameters

    node : node

    The node that will replace this one.

  • since 4.3.0

    wrapWith( wrapper ) → element

    Wraps this element with given wrapper.

    Parameters

    wrapper : element

    The element which will be this element's new parent.

    Returns

    element

    Wrapper.