Use document
when getRootNode
is unsupported
#6630
Merged
document
when getRootNode
is unsupported
#6630