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