implicit final class SaferElement extends AnyVal
- See also
https://dom.spec.whatwg.org/#interface-element
- Alphabetic
- By Inheritance
- SaferElement
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SaferElement(value: raw.Element)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getAttribute(name: String): Option[String]
getAttribute() returns the value of the named attribute on the specified element.
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
getAttributeNS(namespaceURI: String, localName: String): Option[String]
getAttributeNS returns the string value of the attribute with the specified namespace and name.
getAttributeNS returns the string value of the attribute with the specified namespace and name. If the named attribute does not exist, the value returned will either be null or "" (the empty string); see Notes for details.
MDN
-
def
getAttributeNode(name: String): Option[raw.Attr]
Returns the specified attribute of the specified element, as an Attr node.
Returns the specified attribute of the specified element, as an Attr node.
MDN
-
def
getAttributeNodeNS(namespaceURI: String, localName: String): Option[raw.Attr]
Returns the Attr node for the attribute with the given namespace and name.
Returns the Attr node for the attribute with the given namespace and name.
MDN
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
setAttributeNode(newAttr: raw.Attr): Option[raw.Attr]
setAttributeNode() adds a new Attr node to the specified element.
setAttributeNode() adds a new Attr node to the specified element.
MDN
-
def
setAttributeNodeNS(newAttr: raw.Attr): Option[raw.Attr]
setAttributeNodeNS adds a new namespaced attribute node to an element.
setAttributeNodeNS adds a new namespaced attribute node to an element.
MDN
-
def
toString(): String
- Definition Classes
- Any
- val value: raw.Element