Revert "Fix test breaking where you cannot instanceof check DocumentFragment"

This reverts commit ce84c7f07f85377bbb71f877b54a0158411b2b90.