Skip to content

Commit 9c05bd4

Browse files
committed
Remove nullary removeAttribute() and getAttribute(). Both throw TypeError.
1 parent 9e515fc commit 9c05bd4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -782,15 +782,6 @@ abstract class Element
782782
*/
783783
def getAttribute(name: String): String = js.native
784784

785-
/**
786-
* getAttribute() returns the value of the named attribute on the specified element.
787-
* If the named attribute does not exist, the value returned will either be null or ""
788-
* (the empty string); see Notes for details.
789-
*
790-
* MDN
791-
*/
792-
def getAttribute(): String = js.native
793-
794785
/**
795786
* Returns a list of elements with the given tag name belonging to the given namespace.
796787
*
@@ -857,13 +848,6 @@ abstract class Element
857848
*/
858849
def removeAttribute(name: String): Unit = js.native
859850

860-
/**
861-
* removeAttribute removes an attribute from the specified element.
862-
*
863-
* MDN
864-
*/
865-
def removeAttribute(): Unit = js.native
866-
867851
/**
868852
* setAttributeNS adds a new attribute or changes the value of an attribute with the
869853
* given namespace and name.

0 commit comments

Comments
 (0)