Modify connectedToTheDom check to work correctly for elements owned by documents other than the global document.
Modify connectedToTheDom check to work correctly for elements owned by documents other than the global document.

This fixes a bug that prevented the use of backspace in form elements (or content-editables) in secondary windows created using window.open.

Fixes #5.
slorber/backspace-disabler