tmpvar/jsdom — pull request #375 by fgnass (2011-12-16 16:38:41+00:00)
Title: Using querySelector :not() throws a ReferenceError

... because Sizzle tries to access the global (undefined) `document` variable [here](https://github.com/fgnass/jsdom/blob/master/lib/jsdom/selectors/sizzle.js#L26).

Instead of falling back to the undefined `document` var this patch uses the ownerDocument of the first seed.