6.3.4 Element Objects

class Element()

The base class for all element-type nodes in a document. Elements generally refer to nodes created by LaTeX commands and environments.

getAttribute(name)

returns the attribute specified by name

getElementById(elementId)

retrieve the element with the given ID

getElementsByTagName(tagName)

retrieve all nodes with the given name in the node

hasAttribute(name)

returns a boolean indicating whether or not the specified attribute exists

removeAttribute(name)

removes the attribute name from the attributes dictionary

setAttribute(name, value)

sets the attribute value in the attributes dictionary using the key name