Looks for a name attribute, and throws an exception when now found.
name
only used as part of the error message