1.7.2.9
Gameface
Element Interface Reference

a element in the view More...

+ Inheritance diagram for Element:

Public Member Functions

void setAttribute (DOMString qualifiedName, DOMString value)
 sets the given attribute name to the specified value More...
 
void setAttributeNS (DOMString ns, DOMString qualifiedName, DOMString value)
 sets the given attribute name to the specified value More...
 
void removeAttribute (DOMString qualifiedName)
 removes the specified attribute More...
 
void removeAttributeNS (DOMString ns, DOMString qualifiedName)
 removes the specified attribute More...
 
DOMString getAttribute (DOMString qualifiedName)
 returns the attribute value for the given qualified name More...
 
DOMString getAttributeNS (DOMString ns, DOMString qualifiedName)
 returns the attribute value for the given qualified name More...
 
boolean hasAttribute (DOMString qualifiedName)
 returns whether the element has an attribute with the given qualified name More...
 
boolean hasAttributeNS (DOMString ns, DOMString qualifiedName)
 returns whether the element has an attribute with the given qualified name More...
 
Attr getAttributeNode (DOMString qualifiedName)
 Returns the specified attribute of the specified element, as an Attr node. More...
 
Attr getAttributeNodeNS (DOMString? namespace, DOMString localName)
 Returns the Attr node for the attribute with the given namespace and name. More...
 
Attr setAttributeNode (Attr attr)
 Adds a new Attr node to the specified element. More...
 
Attr setAttributeNodeNS (Attr attr)
 Adds a new namespaced attribute node to an element. More...
 
Attr removeAttributeNode (Attr attr)
 Removes the specified attribute from the current element. More...
 
boolean hasAttributes ()
 Returns Boolean value, indicating if the current element has any attributes or not. More...
 
sequenceDOMString getAttributeNames ()
 Must return the qualified names of the attributes in context objects attribute list, in order, and a new list otherwise. More...
 
HTMLCollection getElementsByTagName (DOMString qualifiedName)
 Returns the list of elements with qualified name qualifiedName for context object. More...
 
HTMLCollection getElementsByTagNameNS (DOMString? namespace, DOMString localName)
 Return the list of elements with namespace namespace and local name localName for. More...
 
HTMLCollection getElementsByClassName (DOMString classNames)
 Return the list of elements with class names classNames for context object. More...
 
Element insertAdjacentElement (DOMString where, Element element)
 Inserts a given element node at a given position relative to the element it is invoked upon. More...
 
void insertAdjacentText (DOMString where, DOMString data)
 Inserts a given text node at a given position relative to the element it is invoked upon. More...
 
Element closest (DOMString selectors)
 Returns the closest ancestor of the current element (or the current element itself) which matches the selectors given in parameter. If there isn't such an ancestor, it returns null. More...
 
boolean matches (DOMString selectors)
 Returns true if the element would be selected by the specified selector string; otherwise, returns false. More...
 
void blur ()
 Removes keyboard focus from this element. More...
 
void focus ()
 Gives keyboard focus to this element. More...
 
void insertAdjacentHTML (DOMString position, DOMString text)
 Parses the specified text as HTML or XML and inserts the resulting nodes into the DOM tree at a specified position. More...
 
Element querySelector (DOMString selectors)
 Returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors. More...
 
NodeList querySelectorAll (DOMString selectors)
 Returns a static (not live) NodeList of all elements descended from the element on which it is invoked that matches the specified group of CSS selectors. (The base element itself is not included, even if it matches.) More...
 
sequence< AnimationgetAnimations ()
 Returns an array of all the Animation objects that the element has. More...
 
MorphAnimation getBackgroundSVGAnimation ()
 returns an web animations api alike animation object for the corresponding morphed svg on the background More...
 
MorphAnimation getBorderSVGAnimation ()
 returns a web animations api alike animation object for the corresponding morphed svg on the border More...
 
MorphAnimation getMaskSVGAnimation ()
 returns a web animations api alike animation object for the corresponding morphed svg on the mask More...
 
DOMRect getBoundingClientRect ()
 Returns the bounding rectangle of the element. More...
 
- Public Member Functions inherited from Node
Node removeChild (Node oldChild)
 remove a child node More...
 
Node appendChild (Node newChild)
 append a node as a child More...
 
Node replaceChild (Node newChild, Node oldChild)
 replace oldChild with newChild More...
 
Node insertBefore (Node node, Node? referenceNode)
 insert a node before the reference node, as a child of the current node More...
 
Node cloneNode (optional boolean deep=false)
 
boolean isEqualNode (Node? otherNode)
 
boolean isSameNode (Node? otherNode)
 
boolean hasChildNodes ()
 
boolean contains (Node? other)
 
DOMString lookupPrefix (DOMString? namespace)
 
boolean isDefaultNamespace (DOMString? namespace)
 
void normalize ()
 
unsigned short compareDocumentPosition (Node other)
 
Node getRootNode (optional GetRootNodeOptions options)
 
DOMString lookupNamespaceURI (DOMString? prefix)
 
- Public Member Functions inherited from EventTarget
void addEventListener (DOMInternedString type, EventListener listener, [Default=Undefined] optional boolean useCapture)
 
void removeEventListener (DOMInternedString type, EventListener listener, [Default=Undefined] optional boolean useCapture)
 
boolean dispatchEvent (Event event)
 

Public Attributes

readonly attribute DOMString tagName
 the element tag More...
 
readonly attribute DOMString prefix
 Returns the namespace prefix of the specified element, or null if no prefix is specified. More...
 
readonly attribute DOMString namespaceURI
 Returns the namespace URI of the element, or null if the element is not in a namespace. More...
 
readonly attribute DOMString localName
 returns the local part of the qualified name of an element. More...
 
attribute DOMString slot
 Returns the name of the shadow DOM slot attached to the element. A slot is a placeholder inside a web component that users can fill with their own markup. More...
 
readonly attribute CSSStyleDeclaration style
 the style of the element More...
 
attribute DOMString id
 the id of the element More...
 
readonly attribute NamedNodeMap attributes
 Gets a list of all attributes for the Element. More...
 
readonly attribute NodeList children
 A collection rooted at context object matching only element children. Note: This should be part of the ParentNode interface, which Element implements. Note: The return type should be HTMLCollection. More...
 
readonly attribute Element firstElementChild
 attributes getter must return the first child that is an element, and null otherwise. Note: This should be part of the ParentNode interface, which Element More...
 
readonly attribute Element lastElementChild
 attributes getter must return the last child that is an element, and null otherwise. Note: This should be part of the ParentNode interface, which Element More...
 
readonly attribute Element previousElementSibling
 Returns the Element immediately prior to this node in its parent's children list, or null if there is no Element in the list prior to this node. Note: This attribute is part of the NonDocumentTypeChildNode interface, which Element implements. More...
 
readonly attribute Element nextElementSibling
 Returns the Element immediately following this node in its parent's children list, or null if there is no Element in the list following this node. Note: This attribute is part of the NonDocumentTypeChildNode interface, which Element implements. More...
 
readonly attribute unsigned long childElementCount
 attributes getter must return the number of children of context object that are elements. Note: This should be part of the ParentNode interface, which Element More...
 
attribute float scrollLeft
 position of the horizontal scrollbar of the element More...
 
attribute float scrollTop
 position of the vertical scrollbar of the element More...
 
readonly attribute long scrollWidth
 size of the horizontal scrollbar of the element More...
 
readonly attribute long scrollHeight
 size of the vertical scrollbar of the element More...
 
attribute DOMString className
 all of the classes of the element More...
 
readonly attribute DOMTokenList classList
 
attribute DOMString innerHTML
 Gets or sets the contents of the element as HTML. More...
 
attribute EventSetter focusin
 
attribute EventSetter focusout
 
attribute EventSetter abort
 
attribute EventSetter blur
 
attribute EventSetter click
 
attribute EventSetter dblclick
 
attribute EventSetter error
 
attribute EventSetter focus
 
attribute EventSetter keydown
 
attribute EventSetter keypress
 
attribute EventSetter keyup
 
attribute EventSetter load
 
attribute EventSetter mousedown
 
attribute EventSetter mouseover
 
attribute EventSetter mouseout
 
attribute EventSetter mouseenter
 
attribute EventSetter mouseleave
 
attribute EventSetter mousemove
 
attribute EventSetter mouseup
 
attribute EventSetter input
 
attribute EventSetter scroll
 
attribute EventSetter wheel
 
attribute EventSetter touchstart
 
attribute EventSetter touchend
 
attribute EventSetter touchmove
 
attribute EventSetter animationend
 
attribute EventSetter transitionend
 
- Public Attributes inherited from Node
readonly attribute DOMString nodeName
 
attribute DOMString nodeValue
 
attribute DOMString textContent
 
readonly attribute unsigned short nodeType
 type of the node More...
 
readonly attribute Node parentNode
 parent of the node More...
 
readonly attribute Element parentElement
 parent element of the node. If parent is not an Element, returns null. More...
 
readonly attribute NodeList childNodes
 list of the children of this node More...
 
readonly attribute Node firstChild
 the node's first child in the tree, or null if the node is childless More...
 
readonly attribute Node lastChild
 last child of the node, or null if there are no child elements More...
 
readonly attribute Node previousSibling
 the node immediately preceding the specified one in its parent's children, or null if the specified node is the first in that list More...
 
readonly attribute Node nextSibling
 the node immediately following the specified one in its parent's children, or null if the specified node is the last node in that list More...
 
readonly attribute Document ownerDocument
 The Document object associated with this node. This is also the Document object used to create new nodes. When this node is a Document or a DocumentType which is not used with any Document yet, this is null. More...
 
readonly attribute USVString baseURI
 
readonly attribute boolean isConnected
 
const unsigned short ELEMENT_NODE = 1
 
const unsigned short ATTRIBUTE_NODE = 2
 
const unsigned short TEXT_NODE = 3
 
const unsigned short CDATA_SECTION_NODE = 4
 
const unsigned short ENTITY_REFERENCE_NODE = 5
 
const unsigned short ENTITY_NODE = 6
 
const unsigned short PROCESSING_INSTRUCTION_NODE = 7
 
const unsigned short COMMENT_NODE = 8
 
const unsigned short DOCUMENT_NODE = 9
 
const unsigned short DOCUMENT_TYPE_NODE = 10
 
const unsigned short DOCUMENT_FRAGMENT_NODE = 11
 
const unsigned short NOTATION_NODE = 12
 
const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01
 
const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02
 
const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04
 
const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08
 
const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10
 
const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
 

Detailed Description

a element in the view

Member Function Documentation

◆ blur()

void Element::blur ( )

Removes keyboard focus from this element.

◆ closest()

Element Element::closest ( DOMString  selectors)

Returns the closest ancestor of the current element (or the current element itself) which matches the selectors given in parameter. If there isn't such an ancestor, it returns null.

◆ focus()

void Element::focus ( )

Gives keyboard focus to this element.

◆ getAnimations()

sequence<Animation> Element::getAnimations ( )

Returns an array of all the Animation objects that the element has.

◆ getAttribute()

DOMString Element::getAttribute ( DOMString  qualifiedName)

returns the attribute value for the given qualified name

◆ getAttributeNames()

sequenceDOMString Element::getAttributeNames ( )

Must return the qualified names of the attributes in context objects attribute list, in order, and a new list otherwise.

◆ getAttributeNode()

Attr Element::getAttributeNode ( DOMString  qualifiedName)

Returns the specified attribute of the specified element, as an Attr node.

◆ getAttributeNodeNS()

Attr Element::getAttributeNodeNS ( DOMString?  namespace,
DOMString  localName 
)

Returns the Attr node for the attribute with the given namespace and name.

◆ getAttributeNS()

DOMString Element::getAttributeNS ( DOMString  ns,
DOMString  qualifiedName 
)

returns the attribute value for the given qualified name

◆ getBackgroundSVGAnimation()

MorphAnimation Element::getBackgroundSVGAnimation ( )

returns an web animations api alike animation object for the corresponding morphed svg on the background

◆ getBorderSVGAnimation()

MorphAnimation Element::getBorderSVGAnimation ( )

returns a web animations api alike animation object for the corresponding morphed svg on the border

◆ getBoundingClientRect()

DOMRect Element::getBoundingClientRect ( )

Returns the bounding rectangle of the element.

◆ getElementsByClassName()

HTMLCollection Element::getElementsByClassName ( DOMString  classNames)

Return the list of elements with class names classNames for context object.

◆ getElementsByTagName()

HTMLCollection Element::getElementsByTagName ( DOMString  qualifiedName)

Returns the list of elements with qualified name qualifiedName for context object.

◆ getElementsByTagNameNS()

HTMLCollection Element::getElementsByTagNameNS ( DOMString?  namespace,
DOMString  localName 
)

Return the list of elements with namespace namespace and local name localName for.

◆ getMaskSVGAnimation()

MorphAnimation Element::getMaskSVGAnimation ( )

returns a web animations api alike animation object for the corresponding morphed svg on the mask

◆ hasAttribute()

boolean Element::hasAttribute ( DOMString  qualifiedName)

returns whether the element has an attribute with the given qualified name

◆ hasAttributeNS()

boolean Element::hasAttributeNS ( DOMString  ns,
DOMString  qualifiedName 
)

returns whether the element has an attribute with the given qualified name

◆ hasAttributes()

boolean Element::hasAttributes ( )

Returns Boolean value, indicating if the current element has any attributes or not.

◆ insertAdjacentElement()

Element Element::insertAdjacentElement ( DOMString  where,
Element  element 
)

Inserts a given element node at a given position relative to the element it is invoked upon.

◆ insertAdjacentHTML()

void Element::insertAdjacentHTML ( DOMString  position,
DOMString  text 
)

Parses the specified text as HTML or XML and inserts the resulting nodes into the DOM tree at a specified position.

◆ insertAdjacentText()

void Element::insertAdjacentText ( DOMString  where,
DOMString  data 
)

Inserts a given text node at a given position relative to the element it is invoked upon.

◆ matches()

boolean Element::matches ( DOMString  selectors)

Returns true if the element would be selected by the specified selector string; otherwise, returns false.

◆ querySelector()

Element Element::querySelector ( DOMString  selectors)

Returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.

◆ querySelectorAll()

NodeList Element::querySelectorAll ( DOMString  selectors)

Returns a static (not live) NodeList of all elements descended from the element on which it is invoked that matches the specified group of CSS selectors. (The base element itself is not included, even if it matches.)

◆ removeAttribute()

void Element::removeAttribute ( DOMString  qualifiedName)

removes the specified attribute

◆ removeAttributeNode()

Attr Element::removeAttributeNode ( Attr  attr)

Removes the specified attribute from the current element.

◆ removeAttributeNS()

void Element::removeAttributeNS ( DOMString  ns,
DOMString  qualifiedName 
)

removes the specified attribute

◆ setAttribute()

void Element::setAttribute ( DOMString  qualifiedName,
DOMString  value 
)

sets the given attribute name to the specified value

◆ setAttributeNode()

Attr Element::setAttributeNode ( Attr  attr)

Adds a new Attr node to the specified element.

◆ setAttributeNodeNS()

Attr Element::setAttributeNodeNS ( Attr  attr)

Adds a new namespaced attribute node to an element.

◆ setAttributeNS()

void Element::setAttributeNS ( DOMString  ns,
DOMString  qualifiedName,
DOMString  value 
)

sets the given attribute name to the specified value

Member Data Documentation

◆ abort

attribute EventSetter Element::abort

◆ animationend

attribute EventSetter Element::animationend

◆ attributes

readonly attribute NamedNodeMap Element::attributes

Gets a list of all attributes for the Element.

◆ blur

attribute EventSetter Element::blur

◆ childElementCount

readonly attribute unsigned long Element::childElementCount

attributes getter must return the number of children of context object that are elements. Note: This should be part of the ParentNode interface, which Element

◆ children

readonly attribute NodeList Element::children

A collection rooted at context object matching only element children. Note: This should be part of the ParentNode interface, which Element implements. Note: The return type should be HTMLCollection.

◆ classList

readonly attribute DOMTokenList Element::classList

◆ className

attribute DOMString Element::className

all of the classes of the element

◆ click

attribute EventSetter Element::click

◆ dblclick

attribute EventSetter Element::dblclick

◆ error

attribute EventSetter Element::error

◆ firstElementChild

readonly attribute Element Element::firstElementChild

attributes getter must return the first child that is an element, and null otherwise. Note: This should be part of the ParentNode interface, which Element

◆ focus

attribute EventSetter Element::focus

◆ focusin

attribute EventSetter Element::focusin

◆ focusout

attribute EventSetter Element::focusout

◆ id

attribute DOMString Element::id

the id of the element

◆ innerHTML

attribute DOMString Element::innerHTML

Gets or sets the contents of the element as HTML.

◆ input

attribute EventSetter Element::input

◆ keydown

attribute EventSetter Element::keydown

◆ keypress

attribute EventSetter Element::keypress

◆ keyup

attribute EventSetter Element::keyup

◆ lastElementChild

readonly attribute Element Element::lastElementChild

attributes getter must return the last child that is an element, and null otherwise. Note: This should be part of the ParentNode interface, which Element

◆ load

attribute EventSetter Element::load

◆ localName

readonly attribute DOMString Element::localName

returns the local part of the qualified name of an element.

◆ mousedown

attribute EventSetter Element::mousedown

◆ mouseenter

attribute EventSetter Element::mouseenter

◆ mouseleave

attribute EventSetter Element::mouseleave

◆ mousemove

attribute EventSetter Element::mousemove

◆ mouseout

attribute EventSetter Element::mouseout

◆ mouseover

attribute EventSetter Element::mouseover

◆ mouseup

attribute EventSetter Element::mouseup

◆ namespaceURI

readonly attribute DOMString Element::namespaceURI

Returns the namespace URI of the element, or null if the element is not in a namespace.

◆ nextElementSibling

readonly attribute Element Element::nextElementSibling

Returns the Element immediately following this node in its parent's children list, or null if there is no Element in the list following this node. Note: This attribute is part of the NonDocumentTypeChildNode interface, which Element implements.

◆ prefix

readonly attribute DOMString Element::prefix

Returns the namespace prefix of the specified element, or null if no prefix is specified.

◆ previousElementSibling

readonly attribute Element Element::previousElementSibling

Returns the Element immediately prior to this node in its parent's children list, or null if there is no Element in the list prior to this node. Note: This attribute is part of the NonDocumentTypeChildNode interface, which Element implements.

◆ scroll

attribute EventSetter Element::scroll

◆ scrollHeight

readonly attribute long Element::scrollHeight

size of the vertical scrollbar of the element

◆ scrollLeft

attribute float Element::scrollLeft

position of the horizontal scrollbar of the element

◆ scrollTop

attribute float Element::scrollTop

position of the vertical scrollbar of the element

◆ scrollWidth

readonly attribute long Element::scrollWidth

size of the horizontal scrollbar of the element

◆ slot

attribute DOMString Element::slot

Returns the name of the shadow DOM slot attached to the element. A slot is a placeholder inside a web component that users can fill with their own markup.

◆ style

readonly attribute CSSStyleDeclaration Element::style

the style of the element

◆ tagName

readonly attribute DOMString Element::tagName

the element tag

◆ touchend

attribute EventSetter Element::touchend

◆ touchmove

attribute EventSetter Element::touchmove

◆ touchstart

attribute EventSetter Element::touchstart

◆ transitionend

attribute EventSetter Element::transitionend

◆ wheel

attribute EventSetter Element::wheel