File tree 1 file changed +10
-1
lines changed
src/main/scala/org/scalajs/dom/raw
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -824,8 +824,17 @@ abstract class Element
824
824
* element node at a given position relative to the element it is invoked upon.
825
825
*
826
826
* 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.
827
836
*/
828
- def insertAdjacentElement (where : String ,
837
+ def insertAdjacentElement (position : String ,
829
838
element : Element ): Element = js.native
830
839
831
840
/**
You can’t perform that action at this time.
0 commit comments