instead of having flag, you should auto detect that the node is not part of DOM render tree and then automatically enter the emulation mode.