From 9c05bd4145da379d2d12d64992415fa6bc02a390 Mon Sep 17 00:00:00 2001 From: Daniel Nixon Date: Sun, 15 Jan 2017 14:52:35 +1100 Subject: [PATCH] Remove nullary removeAttribute() and getAttribute(). Both throw TypeError. --- src/main/scala/org/scalajs/dom/raw/lib.scala | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main/scala/org/scalajs/dom/raw/lib.scala b/src/main/scala/org/scalajs/dom/raw/lib.scala index ee6827821..1606011be 100644 --- a/src/main/scala/org/scalajs/dom/raw/lib.scala +++ b/src/main/scala/org/scalajs/dom/raw/lib.scala @@ -782,15 +782,6 @@ abstract class Element */ def getAttribute(name: String): String = js.native - /** - * getAttribute() returns the value of the named attribute on the specified element. - * If the named attribute does not exist, the value returned will either be null or "" - * (the empty string); see Notes for details. - * - * MDN - */ - def getAttribute(): String = js.native - /** * Returns a list of elements with the given tag name belonging to the given namespace. * @@ -857,13 +848,6 @@ abstract class Element */ def removeAttribute(name: String): Unit = js.native - /** - * removeAttribute removes an attribute from the specified element. - * - * MDN - */ - def removeAttribute(): Unit = js.native - /** * setAttributeNS adds a new attribute or changes the value of an attribute with the * given namespace and name.