Document.createTreeWalker and skeleton for TreeWalker