Removes the sibling text nodes for the given node that only consists of tabs, newlines and spaces.

  • Parameters

    • node: HTMLElement

      DOM node whose siblings should be removed.

    • before: boolean

      Optional boolean that specifies the direction of the traversal.

    Returns void