Skip to content

Commit 8668b20

Browse files
Update dom/src/main/scala/org/scalajs/dom/Document.scala
Co-authored-by: Arman Bilge <[email protected]>
1 parent 9c623c6 commit 8668b20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dom/src/main/scala/org/scalajs/dom/Document.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ abstract class Document extends Node with NodeSelector with DocumentEvent with P
125125
/** In an HTML document creates the specified HTML element or HTMLUnknownElement if the element is not known. In a XUL
126126
* document creates the specified XUL element. In other documents creates an element with a null namespaceURI.
127127
*/
128-
def createElement(tagName: String, options: String | ElementCreationOptions = js.native): Element = js.native
128+
def createElement(tagName: String): Element = js.native
129+
def createElement(tagName: String, options: String): Element = js.native
130+
def createElement(tagName: String, options: ElementCreationOptions): Element = js.native
129131

130132
/** Creates an element with the specified namespace URI and qualified name. */
131133
def createElementNS(namespaceURI: String, qualifiedName: String,

0 commit comments

Comments
 (0)