Added docs.
When the target option contains a selector, we should query the whole document.