domtree output
5.1 fixes (hopefully)