support documentElement type