drop document before querySelector