Preparation for handling multiple Dom types.