Html – XPath to target first ancestor tag
Some HTML: <div> <div> <button> <svg xmlns="http://www.w3.org/2000/svg"> <path d="x" /> </svg> </button> </div> <div> <button> <!-- I want this --> <svg xmlns="http://www.w3.org/2000/svg"> <path d="y" /> <!-- I have this --> </svg> </button> </div> </div> I have the data (y) to…