Support simulated DOM attachment in callAttachHooks
3.6.1