Enabled setRoot to take a dom node instance.