(
/** @type {HtmlElement | HtmlDocument | HtmlDocumentFragment} */ parent,
/** @type {HtmlNode | null} */ beforeNode
)
| 4722 | /** @type {InsertionPlace} */ |
| 4723 | const sharedPlace = { parent: doc, beforeNode: null }; |
| 4724 | const placeAt = ( |
| 4725 | /** @type {HtmlElement | HtmlDocument | HtmlDocumentFragment} */ parent, |
| 4726 | /** @type {HtmlNode | null} */ beforeNode |
| 4727 | ) => { |
| 4728 | sharedPlace.parent = parent; |
| 4729 | sharedPlace.beforeNode = beforeNode; |
| 4730 | return sharedPlace; |
| 4731 | }; |
| 4732 | |
| 4733 | // "appropriate place for inserting a node" |
| 4734 | const appropriatePlace = () => { |