instanceof is problematic because a ```DocumentFragment``` from another window will result in a true instanceof check of the window this code runs in.