The Dom\AdjacentPosition Enum
The AdjacentPosition enum is used to specify where, relative to the context element, insertion should be performed using Dom\Element::insertAdjacentElement or Dom\Element::insertAdjacentText.
Intro
The AdjacentPosition enum is used to specify where, relative to the context element, insertion should be performed using Dom\Element::insertAdjacentElement or Dom\Element::insertAdjacentText.
Enumsynopsis
AdjacentPositionBeforeBeginInsert before the context element. This is only possible if the element is in a document and has a parent.AfterBeginInsert before the first child of the context element.BeforeEndInsert after the last child of the context element.AfterEndInsert after the context element. This is only possible if the element is in a document and has a parent.