adding support for rendering to an element in addition to string for comparisons.