HTML API
insertAdjacentElement
Inserts a given element or a documentFragment node at a given position relative to the element it is invoked upon.
Throws an exception when the application cannot find a match for the element. See HTML live edit for further information.
tilepieces.core.htmlMatch.insertAdjacentElement(element,position,node); Parameters
- element
- A DOM element
- position
A
DOMStringrepresenting the position relative to the element ; must match one of the following strings:'before': Before the element itself.'prepend': Just inside the element , before its first child.'append': Just inside the element , after its last child.'after': After the element itself.
- node
- An element or a documentFragment.
Return Value
None.