コメントノードは,以下でとれるよ。
document.evaluate('//comment()[contains(., "hogehoge")]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);