pass dom node to patch