Throwing a TypeError instead of an InvalidStateError DOMException follows the current specification steps.