Sign in Join
FPDoc Onlineexperiment

TDOMElement class

In unit Laz2_DOM

Implements the DOM Element interface from the DOM specification.

Declaration

pascal
TDOMElement = class(TDOMNode_NS)

Inheritance

  1. TDOMElement
  2. TDOMNode_NS
  3. TDOMNode_WithChildren
  4. 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

TagNamepublicThe qualified name used as the Tag name for the DOM Element.
AttribStringspublicProvides indexed access to Attributes and their value as a String.

Methods

GetNodeTypeprotectedGets the value for the NodeType property.
GetAttributesprotectedGets the value for the Attributes property.
AttachDefaultAttrsprotectedCreates attribute nodes with the default attribute values in a namespaced DOM Element.
InternalLookupPrefixprotectedGets the Namespace Prefix used for the specified Namespace URI.
RestoreDefaultAttrprotectedRestores the specified default attribute name and value in the DOM Element.
DestroypublicDestructor for the class instance.
CloneNodepublicCreates a DOM node that is a copy of the DOM Element.
IsEmptypublicIndicates if the DOM Element does not have any content.
NormalizepublicPerforms normalization for Text nodes and Attributes in the DOM Element.
GetAttributepublicGets the value for the AttribStrings property.
SetAttributepublicSets the value in the AttribStrings property.
RemoveAttributepublicRemoves the DOM Attribute with the specified name.
GetAttributeNodepublicGets the DOM Attribute node with the specified name.
SetAttributeNodepublicStores the new DOM Attribute node to an existing Attribute with the same name.
RemoveAttributeNodepublicRemoves the specified DOM Attribute node from the Attributes for the Element.
GetElementsByTagNamepublicGets a list of DOM nodes with the specified name in the sub-tree for the Element.
GetAttributeNSpublicGets the value for an Attribute with the specified Namespace URI and local name.
SetAttributeNSpublicSets the value for the DOM Attribute with the specified Namespace URI and qualified name.
RemoveAttributeNSpublicRemoves the DOM Attribute with the specified Namespace URI and local name.
GetAttributeNodeNSpublicGets the DOM Attribute node with the specified Namespace URI and local name.
SetAttributeNodeNSpublicStores the new DOM Attribute node in an existing Namespaced Attribute node.
GetElementsByTagNameNSpublicGets a Node list with Elements having the specified Namespace URI and local name.
hasAttributepublicIndicates if the Attributes property contains an item with the specified name.
hasAttributeNSpublicIndicates if Attributes contains an attribute with the specified Namespace URI and local name.
HasAttributespublicIndicates if the Attributes property contains DOM Attribute nodes.

Fields

FAttributesprotected

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.