pass parentElement to the DomHelper constructor so that it creates a helper for that document