TDOMElement.RestoreDefaultAttr procedure
Restores the specified default attribute name and value in the DOM Element.
Declaration
procedure 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
