Support for dom elements and collections.