Path api for dom nodes