elementInUseAttributeErr
NIST
The "setAttributeNode(newAttr)" method raises an
"INUSE_ATTRIBUTE_ERR DOMException if the "newAttr"
is already an attribute of another element.
Retrieve the last child of the second employee and append
a newly created element. The "createAttribute(name)"
and "setAttributeNode(newAttr)" methods are invoked
to create and add a new attribute to the newly created
Element. The "setAttributeNode(newAttr)" method is
once again called to add the new attribute causing an
exception to be raised since the attribute is already
an attribute of another element.
Mary Brady
2001-08-17