dperini/nwmatcher — pull request #66 by RubenVerborgh (2013-01-17 13:11:57+00:00)
Title: Use document as root if documentElement is not defined

`nwmatcher` crashed in `jsdom` if `doc.documentElement` is not defined, for example when there is no root `HTML` element (see tmpvar/jsdom#555).

I'm unsure whether this is a bug in `nwmatcher` or `jsdom`, but this fix eliminates it.