Revert "moved option "targetDocument" to optional attributes"

This reverts commit 633c0c78407d6ad7106cea14458bd92d6a7b50cd.