add to_dom

Signed-off-by: zhangb <zhangbozhb@gmail.com>
bug fix

Signed-off-by: zhangb <zhangbozhb@gmail.com>