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

TDOMNamedNodeMap.RemoveNamedItem

Removes the node with the specified name.

Declaration

Source position: laz2_dom.pas line 403

public function TDOMNamedNodeMap.RemoveNamedItem(

  const name: DOMString

):TDOMNode;

Arguments

name

  

Name for the DOM node removed in the method.

Function result

The DOM node removed in the method.

Description

RemoveNamedItem is a TDOMNode function used to remove the node with the name specified in the name argument. RemoveNamedItem calls the InternalRemove method to locate and remove the node from the map, and possibly restore the default value for a DOM Attribute node.

The return value contains the DOM node removed from the SortedItem property.

Errors

EDOMError
Raised with the error constant NO_MODIFICATION_ALLOWED_ERR when the Owner is marked as read-only.
EDOMNotFound
Raised if a node with the specified name is not found in the node map.

See also

TDOMNamedNodeMap.InternalRemove

  

Performs actions need to remove an attribute node with the specified name.

TDOMNamedNodeMap.SortedItem

  

Provides indexed access to the sorted DOM Nodes in the container.

EDOMError

  

Base class for exceptions raised in DOM interface classes.

EDOMNotFound

  

Exception raised when a node is accessed in a context where it does not exist.


Version 4.0 Generated 2025-05-03 Home