Developer Resources

WebDOMElement

Overview

The WebDOMElement class represents a DOM element.

Base Class

WebDOMNode

Constructor

WebDOMElement()

Methods

WebDOMElement.getAttribute
Gets the attribute of this element.
WebDOMElement.getAttributeNode
Gets the attribute node of this element.
WebDOMElement.getElementsByTagName
Gets an array of child elements having the specified tag name.
WebDOMElement.getTagName
Gets the tag name of this element.
WebDOMElement.hasAttribute
Returns true if the specified attribute exists, and false otherwise.
WebDOMElement.removeAttribute
Removes the specified attribute from this element.
WebDOMElement.removeAttributeNode
Removes the attribute node of this element.
WebDOMElement.setAttribute
Sets the attribute of this element to a specified value.
WebDOMElement.setAttributeNode
Sets the attribute node of this element.

Inherited Methods

WebDOMNode.appendChild
Appends a child node to this node.
WebDOMNode.cloneNode
Clones this node.
WebDOMNode.getAttributes
Gets the attributes of this node.
WebDOMNode.getChildNodes
Gets the child nodes of this node.
WebDOMNode.getFirstChild
Gets the first child node of this node.
WebDOMNode.getLastChild
Gets the last child node of this node.
WebDOMNode.getLocalName
Returns the local name
WebDOMNode.getNamespaceURI
Returns the namespace URI
WebDOMNode.getNextSibling
Gets the next sibling node of this node.
WebDOMNode.getNodeName
Gets the name of this node.
WebDOMNode.getNodeType
Gets the type of this node.
WebDOMNode.getNodeValue
Gets the value of this node.
WebDOMNode.getOwnerDocument
Gets the document to which the node belongs.
WebDOMNode.getParentNode
Gets the parent node of this node.
WebDOMNode.getPrefix
Returns the prefix
WebDOMNode.getPreviousSibling
Gets the previous sibling node of this node.
WebDOMNode.hasAttributes
Returns true if this node has attributes, and false otherwise.
WebDOMNode.hasChildNodes
Returns true if this node has child nodes, and false otherwise.
WebDOMNode.insertBefore
Inserts a child node before another child node within this node's children.
WebDOMNode.isSupported
Determines if a feature in a particular version is supported.
WebDOMNode.normalize
Removes all empty text nodes and consolidates adjacent text nodes into a single node.
WebDOMNode.removeChild
Removes a child node from this node.
WebDOMNode.replaceChild
Replaces a child node of this node with another node.
WebDOMNode.setNodeValue
Sets the value of this node.
WebDOMNode.setPrefix
Sets the prefix

WebDOMElement.getAttribute

WebDOMElement.getAttribute(attr : String) : String

Arguments

attr
The attribute for which to return the value.

Returns

Returns the value of the specified attribute of this element.

Description

Returns the value of the specified attribute of this element.

WebDOMElement.getAttributeNode

WebDOMElement.getAttributeNode(attr : String) : WebDOMAttr

Arguments

attr

WebDOMElement.getElementsByTagName

WebDOMElement.getElementsByTagName(tag_name : String) : Array(WebDOMElement)

Arguments

tag_name
The tag_name of the child elements that are to be returned.

Returns

Returns an array of all the child elements of this element which have the specified tag name.

Description

Returns an array of all the child elements of this element which have the specified tag name.

WebDOMElement.getTagName

WebDOMElement.getTagName() : String

Returns

Returns the tag name of this element.

Description

Returns the tag name of this element.

WebDOMElement.hasAttribute

WebDOMElement.hasAttribute(attr : String)

Arguments

attr
The attribute to determine if exists in the element.

Returns

Returns true if the specified attribute exists, and false otherwise.

Description

Returns true if the specified attribute exists in the element, and false otherwise.

WebDOMElement.removeAttribute

WebDOMElement.removeAttribute(attr : String)

Arguments

attr
The attribute to remove.

Description

Removes the specified attribute from this element.

WebDOMElement.removeAttributeNode

WebDOMElement.removeAttributeNode(attr : WebDOMAttr) : WebDOMAttr

Arguments

attr

WebDOMElement.setAttribute

WebDOMElement.setAttribute(attr : String, value : String)

Arguments

attr
The attribute to set.
value
The value to which to set the attribute.

Description

Sets the attr attribute of this element to value.

WebDOMElement.setAttributeNode

WebDOMElement.setAttributeNode(attr : WebDOMAttr) : WebDOMAttr

Arguments

attr