unsafeCollapseElement

Type: Function

Collapses the given element (i.e., replaces it with its children) without validation.

Should not be used directly. The "unsafe" part in this function only refers to the fact that the function does not do any validation, in contrast to primitives that always guarantee a schema-valid result on an unmodified blueprint.

Arguments

  1. parentNode

    (Required)

    Type: Node

    Parent node to collapse into, should be the element's direct parent.

  2. elementToCollapse

    (Required)

    Type: Node

    The element to collapse

  3. blueprint

    (Required)

    Type: Blueprint

    The blueprint in which to perform the operation