Allow 'rootElement' to be specified as a selector #6

Allow 'rootElement' to be specified as a selector.