fixed #3
优化dom模块