DOMError don't have a "type" attribute, only a name.