tmpvar/jsdom — pull request #487 by jankuca (2012-08-25 13:23:14+00:00)
Title: add Element::matchesSelector when the QuerySelector options is on

Hey, I added the `element.matchesSelector` method.

```js
element.matchesSelector('#content p); // boolean
```

It (of course) relies on the `QuerySelector` option to be turned on.

There is some strange loop in Sizzle which made me implement the helper variable. Without the `if (matchingSelector)` statement, the maximum call stack exception is thrown.