Allow content to be an object type

Allow content not to be only a string, but also a dom object.
This should be fully backwards compatible.