use the direct methods provided in Document instead
public static class DocumentRootImpl
extends Object
Native implementation used by WindowImpl and DOMImpl to
access the appropriate documentRoot element, which varies based on the render
mode of the browser.