TDOMNamedNodeMap.RestoreDefault procedure
Restores the default value for the attribute node with the specified name.
Declaration
procedure RestoreDefault(const name: DOMString)Arguments
name | Name of the item updated in the method. |
Description
RestoreDefault is a method used to restore the default value for
the attribute with the name specified in the name argument.
RestoreDefault ensures the Node type for the map is set to
ATTRIBUTE_NODE. No actions performed in the method if the Node
type for the map is not set to Attribute nodes. In addition, no actions are
performed when the owner node does not have namespace information with the
default value for the specified attribute name.
RestoreDefault calls the GetAttributeNode method in the owner
Element to retrieve the attribute with the specified name. When assigned, and
the attribute default value is "fixed" or "specified", it is re-applied to
the attribute.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
