File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/main/scala/org/scalajs/dom/raw Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -824,8 +824,17 @@ abstract class Element
824824 * element node at a given position relative to the element it is invoked upon.
825825 *
826826 * MDN
827+ *
828+ * @param position A DOMString representing the position relative to the
829+ * targetElement; must match (case-insensitively) one of the following strings:
830+ * - `"beforebegin"`: Before the targetElement itself.
831+ * - `"afterbegin"`: Just inside the targetElement, before its first child.
832+ * - `"beforeend"`: Just inside the targetElement, after its last child.
833+ * - `"afterend"`: After the targetElement itself.
834+ *
835+ * @return The element that was inserted, or null, if the insertion failed.
827836 */
828- def insertAdjacentElement (where : String ,
837+ def insertAdjacentElement (position : String ,
829838 element : Element ): Element = js.native
830839
831840 /**
You can’t perform that action at this time.
0 commit comments