dom/node: use Array to convert xpath snapshot
dom/node: rename event API