Function replaceElement

  • Replace an element in the dom

    Parameters

    • elem: ChildNode

      The element to be replaced

    • replacement: ChildNode

      The element to be added

    Returns void