[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMElement.RestoreDefaultAttr

Restores the specified default attribute name and value in the DOM Element.

Declaration

Source position: laz2_dom.pas line 629

protected procedure TDOMElement.RestoreDefaultAttr(

  AttrDef: TDOMAttr

);

Arguments

AttrDef

  

DOM Attribute used as the baseline.

Description

RestoreDefaultAttr is a method used to restore the default attribute name and value specified in AttrDef to the Attributes for the DOM Element.

RestoreDefaultAttr checks for a namespace prefix in the name for the attribute, and applies the default namespace information for names starting with 'xmlns' or 'xml'. It calls LookupNamespaceURI to get and set the namespace URI for a name which starts with another prefix. It calls SetAttributeNode to add or update the node in the Attributes property.

RestoreDefaultAttr is called from the AttachDefaultAttrs method in TDOMElement. It is also called from the RestoreDefault method in TDOMNamedNodeMap.

See also

TDOMElement.SetAttributeNode

  

Stores the new DOM Attribute node to an existing Attribute with the same name.

TDOMElement.AttachDefaultAttrs

  

Creates attribute nodes with the default attribute values in a namespaced DOM Element.

TDOMNamedNodeMap.RestoreDefault

  

Restores the default value for the attribute node with the specified name.

TDOMNode.LookupNamespaceURI

  

Locates the NameSpace URI for the specified Prefix.


Version 3.2 Generated 2024-02-25 Home