Class: Element

Element

new Element(id)

Constructor - should not be called directly.
Parameters:
Name Type Description
id string The id of the HTML node representing the XML element.
Source:

Extends

Methods

getAttribute(name) → {string}

Returns the value of the attribute with a given name.
Parameters:
Name Type Description
name string The name of the attribute.
Source:
Returns:
Type
string

getAttributeNS(namespace, name) → {string}

Returns the value of the attribute with a given name.
Parameters:
Name Type Description
namespace string The namespace of the attribute.
name string The name of the attribute.
Source:
Returns:
Type
string

getAttributes() → {Object}

Return the attributes of the XML node that corresponds to the given HTML node.
Source:
Returns:
The attributes stored in an object with the attribute names as keys and with a descriptor object as value. The descriptor contains: - the value of the object. - whether it's value comes from DTD or not. - whether the attribute is hidden.
Type
Object

getTagName() → {string}

Returns the tag name of the element.
Source:
Returns:
The tag name of the element.
Type
string

getType() → {number}

Returns the node type.
Inherited From:
Source:
Returns:
Type
number