Skip to content

Commit dcae307

Browse files
committed
Add ScalaDoc
1 parent 0cbd878 commit dcae307

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

+10-1
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)