Why when I'm using document.querySelector
on a dynamic HTML element, it won't give me the current dynamically set data? Is there a way to get the current data?
Example:
If I go to this stripe page with dynamic html, and I copy the JS path of this element:
When I press paste and run the code in the console I get:
document.querySelector("#Full > table > tbody > tr > td:nth-child(1)")
returns-> <td>EUR</td>
But I would expect to get:
returns-> <td>USD</td>
I noticed that no matter what country I pick for Viewing support settlement currencies for which sets the dynamic HTML, the document query selector always returns the result as if that tab was on the first country in the list, Austria.