ConstReadonlyafterbegin: "afterbegin"
Inserts HTML inside the element, before its first child
Readonlyafterend: "afterend"
Inserts HTML immediately after the element itself
Readonlybeforebegin: "beforebegin"
Inserts HTML immediately before the element itself
Readonlybeforeend: "beforeend"
Inserts HTML inside the element, after its last child
Readonlydelete: "delete"
Removes the element entirely
ReadonlyinnerHTML: "innerHTML"
(default) Replaces the contents inside the element
Readonlynone: "none"
Performs no insertion (no-op)
ReadonlyouterHTML: "outerHTML"
Replaces the entire element, including the tag itself
ReadonlytextContent: "textContent"
Inserts plain text (without parsing HTML)
Possible values for
data-swapand realtime protocolswapfields.