Done.

I tested other functions in the browser like `document.registerElement();` and the error message is different. Should I send a PR updating those messages?