Skip to content

Commit 2e49b00

Browse files
committed
Element: Fix setAttribute()
According to [^dom] all parameters are required. Currently, it is possible to skip the arguments without an error being issued during compilation. [^dom]: http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-F68F082
1 parent 0df9276 commit 2e49b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ class Element extends Node with NodeSelector with ParentNode {
751751
*
752752
* MSN
753753
*/
754-
def setAttribute(name: String = ???, value: String = ???): Unit = ???
754+
def setAttribute(name: String, value: String): Unit = ???
755755

756756
/**
757757
* removeAttributeNS removes the specified attribute from an element.

0 commit comments

Comments
 (0)