getBody().appendChild(testTextArea); throws Cannot read property 'appendChild' of undefined
We use rangyinputs in a Chrome extension, and many times the line getBody().appendChild(testTextArea); throws Cannot read property 'appendChild' of undefined Probably in pages where they don't have a proper "body".
It usually happens if the script is being called before the body is rendered. Try running the chrome extension script once the body is rendered or loaded. Use something like window.onload.
But the problem is that it is out of our control, because the rangyinputs code is hooking the $(document).ready function:
```
$(document).ready(function() { var testTextArea = document.createElement("textarea");
getBody().appendChild(testTextArea);
hmm strange. It should not be an issue with this library though. Maybe you are loading multiple jquery libraries or maybe the latest one instead of the actual jquery library version this library relies on?
I don't think there will be a page without a body element though. If you feel so, maybe elaborate on this (give an example?)
Try checking console errors
Well, I don't know. I use Sentry, and I get many reports on this error, but I can't reproduce it.