Only add orphans to documentFragment if necessary

Test and cache the result of the browser's support for matching orphan
elements to selectors. IE 9's implementation of `matchesSelector`
doesn't support matching of orphans. Add the orphan to a
documentFragment only when necessary.

Ref gh-1