src/language-html/ast.js/Node/insertChildBefore
class Node:  insertChildBefore(target, node) {
    // @ts-expect-error
    this.children.splice(
      // @ts-expect-error
      this.children.indexOf(target),
      0,
      this.createChild(node)
    );
  }