TDOMElement class
Implements the DOM Element interface from the DOM specification.
Declaration
TDOMElement = class(TDOMNode_NS)Inheritance
- TDOMElement
- TDOMNode_NS
- TDOMNode_WithChildren
- TDOMNode
Description
TDOMElement is a
TDOMNode_NS descendant that implements
the DOM Element interface from the DOM specification. TDOMElement represents
an element in an HTML or XML document. It inherits the capabilities defined
in ancestor classes, and provides additional methods and properties need for
the DOM Element interface.
Methods are provided to access Attributes using the Node interface defined in TDOMNode, or as a simple string value. Namespaces are supported for both the element and its attributes. The Normalize method is overridden to include normalization for values in the Attributes property.
See also
Properties
TagName | public | The qualified name used as the Tag name for the DOM Element. |
AttribStrings | public | Provides indexed access to Attributes and their value as a String. |
Methods
GetNodeType | protected | Gets the value for the NodeType property. |
GetAttributes | protected | Gets the value for the Attributes property. |
AttachDefaultAttrs | protected | Creates attribute nodes with the default attribute values in a namespaced DOM Element. |
InternalLookupPrefix | protected | Gets the Namespace Prefix used for the specified Namespace URI. |
RestoreDefaultAttr | protected | Restores the specified default attribute name and value in the DOM Element. |
Destroy | public | Destructor for the class instance. |
CloneNode | public | Creates a DOM node that is a copy of the DOM Element. |
IsEmpty | public | Indicates if the DOM Element does not have any content. |
Normalize | public | Performs normalization for Text nodes and Attributes in the DOM Element. |
GetAttribute | public | Gets the value for the AttribStrings property. |
SetAttribute | public | Sets the value in the AttribStrings property. |
RemoveAttribute | public | Removes the DOM Attribute with the specified name. |
GetAttributeNode | public | Gets the DOM Attribute node with the specified name. |
SetAttributeNode | public | Stores the new DOM Attribute node to an existing Attribute with the same name. |
RemoveAttributeNode | public | Removes the specified DOM Attribute node from the Attributes for the Element. |
GetElementsByTagName | public | Gets a list of DOM nodes with the specified name in the sub-tree for the Element. |
GetAttributeNS | public | Gets the value for an Attribute with the specified Namespace URI and local name. |
SetAttributeNS | public | Sets the value for the DOM Attribute with the specified Namespace URI and qualified name. |
RemoveAttributeNS | public | Removes the DOM Attribute with the specified Namespace URI and local name. |
GetAttributeNodeNS | public | Gets the DOM Attribute node with the specified Namespace URI and local name. |
SetAttributeNodeNS | public | Stores the new DOM Attribute node in an existing Namespaced Attribute node. |
GetElementsByTagNameNS | public | Gets a Node list with Elements having the specified Namespace URI and local name. |
hasAttribute | public | Indicates if the Attributes property contains an item with the specified name. |
hasAttributeNS | public | Indicates if Attributes contains an attribute with the specified Namespace URI and local name. |
HasAttributes | public | Indicates if the Attributes property contains DOM Attribute nodes. |
Fields
FAttributes | protected |
Inherited
From TDOMNode_NS (8)
CompareName GetLocalName GetNamespaceURI GetNodeName GetPrefix NSI SetNSI SetPrefix
From TDOMNode_WithChildren (13)
CloneChildren DetachChild FindNode FreeChildren GetChildCount GetFirstChild GetLastChild GetTextContent HasChildNodes InsertBefore InternalAppend ReplaceChild SetTextContent
From TDOMNode (40)
AppendChild Attributes baseURI Changing ChildNodes Create FirstChild Flags FreeInstance GetBaseURI GetChildNodes GetEnumerator GetEnumeratorAllChildren GetLastLeaf GetLevel GetNextNode GetNextNodeSkipChildren GetNodeValue GetOwnerDocument GetPreviousNode GetRevision IsDefaultNamespace IsSupported LastChild LocalName LookupNamespaceURI LookupPrefix NamespaceURI NextSibling NodeName NodeType NodeValue OwnerDocument ParentNode Prefix PreviousSibling RemoveChild SetNodeValue SetReadOnly TextContent
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
