Support Node.nodeType, Node.nodeValue and Node.ownerDocument.