[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Restores the specified default attribute name and value in the DOM Element.
Source position: laz2_dom.pas line 629
protected procedure TDOMElement.RestoreDefaultAttr( |
AttrDef: TDOMAttr |
); |
AttrDef |
|
DOM Attribute used as the baseline. |
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.
|
Stores the new DOM Attribute node to an existing Attribute with the same name. |
|
|
Creates attribute nodes with the default attribute values in a namespaced DOM Element. |
|
|
Restores the default value for the attribute node with the specified name. |
|
|
Locates the NameSpace URI for the specified Prefix. |
Version 3.2 | Generated 2024-02-25 | Home |