dom/node: fix #ancestors with expression