public abstract Node removeNamedItem (String name) throws DOMException

Removes a node specified by name. When this map contains the attributes attached to an element, if the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.

Parameters:
name    The nodeName of the node to remove.

Returns:  The node removed from this map if a node with such a name exists.

Exceptions:
DOMException     NOT_FOUND_ERR: Raised if there is no node named name in this map.
NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly.