search in the full document for dom elements