Skip to content

Remove nullary removeAttribute() and getAttribute(). #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions src/main/scala/org/scalajs/dom/raw/lib.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
Expand Down