Fixed bug where DomQuery wouldn't accept window as constructor element.